From: Anthony Liguori Date: Mon, 3 Jun 2013 20:37:23 +0000 (-0500) Subject: gtk: don't use g_object_unref on GdkCursor X-Git-Tag: v1.5.3~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a95bc779f21b0330d5559518f49a80c6f4eb979f;p=thirdparty%2Fqemu.git 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) (cherry picked from commit 171392406d8e230d62e5ebf4805f71460854b8ec) Signed-off-by: Michael Roth --- diff --git a/ui/gtk.c b/ui/gtk.c index a788cc08ff0..41942cb1d08 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,