summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/caja-application.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/caja-application.c b/src/caja-application.c
index 1eb2a7cb..e4d2d973 100644
--- a/src/caja-application.c
+++ b/src/caja-application.c
@@ -363,9 +363,13 @@ caja_application_finalize (GObject *object)
g_object_unref (application->unique_app);
- g_bus_unwatch_name (application->ss_watch_id);
+ if (application->ss_watch_id > 0)
+ {
+ g_bus_unwatch_name (application->ss_watch_id);
+ }
- if (application->volume_queue != NULL) {
+ if (application->volume_queue != NULL)
+ {
g_list_free_full (application->volume_queue, g_object_unref);
application->volume_queue = NULL;
}