summaryrefslogtreecommitdiff
path: root/daemon/daemon-main.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2012-07-23 18:16:29 +0200
committerTomas Bzatek <tbzatek@redhat.com>2012-07-31 11:59:37 +0200
commit23535a0e56da1640f0d1d4ecd8f65f66880134cf (patch)
tree8d296c97d294e298ebfdef27153ee249a7038dc3 /daemon/daemon-main.c
parent02f30b8058e61bd3dc6ab70fab1f3b13bd748043 (diff)
downloadgvfs-23535a0e56da1640f0d1d4ecd8f65f66880134cf.tar.gz
gdbus: Use g_clear_object() where appropriate
Diffstat (limited to 'daemon/daemon-main.c')
-rw-r--r--daemon/daemon-main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/daemon/daemon-main.c b/daemon/daemon-main.c
index d218f26a..40d327ad 100644
--- a/daemon/daemon-main.c
+++ b/daemon/daemon-main.c
@@ -413,8 +413,7 @@ daemon_main (int argc,
g_main_loop_run (loop);
- if (data->daemon != NULL)
- g_object_unref (data->daemon);
+ g_clear_object (&data->daemon);
g_free (data->mountable_name);
g_free (data);
if (name_owner_id != 0)