]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
gtk: don't use g_object_unref on GdkCursor
authorAnthony Liguori <aliguori@us.ibm.com>
Mon, 3 Jun 2013 20:37:23 +0000 (15:37 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 13 Aug 2013 14:30:49 +0000 (09:30 -0500)
It's not a GObject.

Cc: Gerd Hoffman <kraxel@redhat.com>
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
---
v1 -> v2
 - Fix summary to agree with code (Peter)
(cherry picked from commit 171392406d8e230d62e5ebf4805f71460854b8ec)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
ui/gtk.c

index a788cc08ff04ab6cb58e2187439276fd516917ce..41942cb1d08982414069e34ca8c7cb43ae39f257 100644 (file)
--- 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,