fix cursor unref for GTK2, broken by 3e75b23

This commit is contained in:
Paul Cornett 2016-01-12 23:58:34 -08:00
parent bf56c34ad2
commit e72133371e

View File

@ -289,7 +289,13 @@ gtk_window_motion_notify_callback( GtkWidget *widget, GdkEventMotion *gdk_event,
}
gdk_window_set_cursor(window, cursor);
if (cursor)
{
#ifdef __WXGTK3__
g_object_unref(cursor);
#else
gdk_cursor_unref(cursor);
#endif
}
}
return TRUE;
}