summaryrefslogtreecommitdiff
path: root/src/caja-application.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-11-15 14:45:43 +0300
committerMonsta <[email protected]>2015-11-15 14:45:43 +0300
commitca2012998d187defac1079e1a8976e46c8b0c69e (patch)
treee03cb3c95ed5d9709d18721fffb95fe70c26ce38 /src/caja-application.c
parentfc6abce360d8f03f5812b8ec94fe6a1d700cc2ab (diff)
downloadcaja-ca2012998d187defac1079e1a8976e46c8b0c69e.tar.bz2
caja-ca2012998d187defac1079e1a8976e46c8b0c69e.tar.xz
fix g_object_unref call
it wasn't properly unref'ed and caused a runtime warning
Diffstat (limited to 'src/caja-application.c')
-rw-r--r--src/caja-application.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/caja-application.c b/src/caja-application.c
index 28c1ce1a..29530071 100644
--- a/src/caja-application.c
+++ b/src/caja-application.c
@@ -719,7 +719,11 @@ screensaver_vanished_callback (GDBusConnection *connection,
g_debug ("ScreenSaver name vanished");
application->screensaver_active = FALSE;
- g_object_unref (&application->ss_proxy);
+ if (application->ss_proxy != NULL)
+ {
+ g_object_unref (application->ss_proxy);
+ application->ss_proxy = NULL;
+ }
/* in this case force a clear of the volume queue, without
* mounting them.