mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
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)
This commit is contained in:
parent
41686a9608
commit
171392406d
1 changed files with 1 additions and 1 deletions
2
ui/gtk.c
2
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,
|
||||
|
|
Loading…
Reference in a new issue