summaryrefslogtreecommitdiff
path: root/src/gs-window-x11.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-11-12 23:56:21 +0100
committerStefano Karapetsas <[email protected]>2013-11-12 23:56:21 +0100
commit483b70e814cf2c012a9186da78d15cdbcd3aec1e (patch)
treeb073aaf1a77fc60f86b3f5d7ee2cb1309ce75dec /src/gs-window-x11.c
parent0e33476937b0a5c9fd3892dfa9d9d3e4b215c02d (diff)
downloadmate-screensaver-483b70e814cf2c012a9186da78d15cdbcd3aec1e.tar.bz2
mate-screensaver-483b70e814cf2c012a9186da78d15cdbcd3aec1e.tar.xz
Fix segfault with GTK3
Diffstat (limited to 'src/gs-window-x11.c')
-rw-r--r--src/gs-window-x11.c2
1 files changed, 1 insertions, 1 deletions
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)