From e72133371eb2237ef509b2e0fb2549d1fe5d841b Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Tue, 12 Jan 2016 23:58:34 -0800 Subject: [PATCH] fix cursor unref for GTK2, broken by 3e75b23 --- src/gtk/minifram.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gtk/minifram.cpp b/src/gtk/minifram.cpp index 98b5d94faf..c8e660e68e 100644 --- a/src/gtk/minifram.cpp +++ b/src/gtk/minifram.cpp @@ -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; }