]> git.proxmox.com Git - mirror_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)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 3 Jun 2013 21:14:05 +0000 (16:14 -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)

ui/gtk.c

index 8dc90412c112f60a7e4ed6ffbbb1fc8164aa982f..3bc284227e296c114007e7992271427322eefd3e 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,