From ca2012998d187defac1079e1a8976e46c8b0c69e Mon Sep 17 00:00:00 2001 From: Monsta Date: Sun, 15 Nov 2015 14:45:43 +0300 Subject: fix g_object_unref call it wasn't properly unref'ed and caused a runtime warning --- src/caja-application.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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. -- cgit v1.2.1