diff --git a/src/gtk/assertdlg_gtk.cpp b/src/gtk/assertdlg_gtk.cpp index 8f24ef6746..4eb8a5d906 100644 --- a/src/gtk/assertdlg_gtk.cpp +++ b/src/gtk/assertdlg_gtk.cpp @@ -116,6 +116,7 @@ void gtk_assert_dialog_process_backtrace (GtkAssertDialog *dlg) GdkDisplay* display = gdk_window_get_display(parent); GdkCursor* cur = gdk_cursor_new_for_display(display, GDK_WATCH); gdk_window_set_cursor (parent, cur); + g_object_unref(cur); gdk_flush (); (*dlg->callback)(dlg->userdata); diff --git a/src/gtk/minifram.cpp b/src/gtk/minifram.cpp index 0c28c9f40e..98b5d94faf 100644 --- a/src/gtk/minifram.cpp +++ b/src/gtk/minifram.cpp @@ -288,6 +288,8 @@ gtk_window_motion_notify_callback( GtkWidget *widget, GdkEventMotion *gdk_event, cursor = gdk_cursor_new_for_display(display, GDK_BOTTOM_RIGHT_CORNER); } gdk_window_set_cursor(window, cursor); + if (cursor) + g_object_unref(cursor); } return TRUE; }