From 171392406d8e230d62e5ebf4805f71460854b8ec Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Mon, 3 Jun 2013 15:37:23 -0500 Subject: gtk: don't use g_object_unref on GdkCursor It's not a GObject. Cc: Gerd Hoffman Reported-by: Michael Tokarev Signed-off-by: Anthony Liguori --- v1 -> v2 - Fix summary to agree with code (Peter) --- ui/gtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/gtk.c b/ui/gtk.c index 8dc9041..3bc2842 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -377,7 +377,7 @@ static void gd_cursor_define(DisplayChangeListener *dcl, pixbuf, c->hot_x, c->hot_y); gdk_window_set_cursor(gtk_widget_get_window(s->drawing_area), cursor); g_object_unref(pixbuf); - g_object_unref(cursor); + gdk_cursor_unref(cursor); } static void gd_switch(DisplayChangeListener *dcl, -- cgit v1.1