From 483b70e814cf2c012a9186da78d15cdbcd3aec1e Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Tue, 12 Nov 2013 23:56:21 +0100 Subject: Fix segfault with GTK3 --- src/gs-window-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c index 8ba2d37..479c826 100644 --- a/src/gs-window-x11.c +++ b/src/gs-window-x11.c @@ -808,7 +808,7 @@ out: g_free (std_output); g_free (command); - return visual; + return g_object_ref (visual); } #if GTK_CHECK_VERSION (3, 0, 0) -- cgit v1.2.1