qemu-stable
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-stable] [Qemu-devel] [PATCH v2] gtk: don't use g_object_unref


From: Bruce Rogers
Subject: Re: [Qemu-stable] [Qemu-devel] [PATCH v2] gtk: don't use g_object_unref on GdkCursor
Date: Mon, 22 Jul 2013 14:36:55 -0600

 >>> On 6/3/2013 at 03:14 PM, Anthony Liguori <address@hidden> wrote: 
> It's not a GObject.
> 
> Cc: Gerd Hoffman <address@hidden>
> Reported-by: Michael Tokarev <address@hidden>
> Signed-off-by: Anthony Liguori <address@hidden>
> ---
> v1 -> v2
>  - Fix summary to agree with code (Peter)
> ---
>  ui/gtk.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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,


This is a candidate for the 1.5.2 stable release.

Bruce




reply via email to

[Prev in Thread] Current Thread [Next in Thread]