[Spice-commits] gtk/spice-widget.c

Marc-André Lureau elmarco at kemper.freedesktop.org
Mon Dec 12 06:26:09 PST 2011


 gtk/spice-widget.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 43c9bc02745c203f197a052732723c3d941c26ca
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date:   Mon Dec 12 15:24:50 2011 +0100

    Fix crash on mouse server mode grab with gtk2
    
    With gtk3 gdk_cursor_unref = g_object_unref. But not with older
    version. Let's be consitent with the rest of the code and use
    cursor_unref().

diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index 63e878e..f5be849 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -557,7 +557,7 @@ static GdkGrabStatus do_pointer_grab(SpiceDisplay *display)
 
     gtk_grab_add(GTK_WIDGET(display));
 
-    g_object_unref(blank);
+    gdk_cursor_unref(blank);
     return status;
 }
 


More information about the Spice-commits mailing list