SHA256
1
0
forked from pool/qemu
qemu/0039-gtk-don-t-use-g_object_unref-on-Gdk.patch

35 lines
1.1 KiB
Diff

From 354ada837cfa3f1bac346b8565569e62afcc89c1 Mon Sep 17 00:00:00 2001
From: Anthony Liguori <aliguori@us.ibm.com>
Date: Mon, 3 Jun 2013 15:37:23 -0500
Subject: [PATCH] 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)
(cherry picked from commit 171392406d8e230d62e5ebf4805f71460854b8ec)
[bnc#830459]
Signed-off-by: Bruce Rogers <brogers@suse.com>
---
ui/gtk.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ui/gtk.c b/ui/gtk.c
index 52c3f95..79fa1d5 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,