[Spice-devel] [spice-gtk] squash-me: pointer might be null

Victor Toso victortoso at redhat.com
Tue Feb 28 14:44:27 UTC 2017


From: Victor Toso <me at victortoso.com>

Ack with this

Signed-off-by: Victor Toso <victortoso at redhat.com>
---
 src/spice-widget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/spice-widget.c b/src/spice-widget.c
index 1e69129..9a7ea56 100644
--- a/src/spice-widget.c
+++ b/src/spice-widget.c
@@ -1074,7 +1074,7 @@ static gboolean do_pointer_grab(SpiceDisplay *display)
     }
 
 end:
-    g_object_unref(blank);
+    g_clear_object(&blank);
     return grab_successful;
 }
 
-- 
2.9.3



More information about the Spice-devel mailing list