fix cursor unref for GTK2, broken by 3e75b23
This commit is contained in:
parent
bf56c34ad2
commit
e72133371e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user