aboutsummaryrefslogtreecommitdiff
path: root/ui/gtk.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2013-06-03 15:37:23 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2013-06-03 16:14:05 -0500
commit171392406d8e230d62e5ebf4805f71460854b8ec (patch)
tree2fd8f52d59aba2775f382fa5e160c56b66ef0b7f /ui/gtk.c
parent41686a960805ed561158c7e4809f0c9f92f1d8ec (diff)
downloadqemu-171392406d8e230d62e5ebf4805f71460854b8ec.zip
qemu-171392406d8e230d62e5ebf4805f71460854b8ec.tar.gz
qemu-171392406d8e230d62e5ebf4805f71460854b8ec.tar.bz2
gtk: don't use g_object_unref on GdkCursor
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)
Diffstat (limited to 'ui/gtk.c')
-rw-r--r--ui/gtk.c2
1 files changed, 1 insertions, 1 deletions
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,