diff options
author | Monsta <[email protected]> | 2015-11-15 14:45:43 +0300 |
---|---|---|
committer | Monsta <[email protected]> | 2015-11-15 14:45:43 +0300 |
commit | ca2012998d187defac1079e1a8976e46c8b0c69e (patch) | |
tree | e03cb3c95ed5d9709d18721fffb95fe70c26ce38 /src/caja-application.c | |
parent | fc6abce360d8f03f5812b8ec94fe6a1d700cc2ab (diff) | |
download | caja-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.c | 6 |
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. |