diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-23 18:16:29 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-31 11:59:37 +0200 |
commit | 23535a0e56da1640f0d1d4ecd8f65f66880134cf (patch) | |
tree | 8d296c97d294e298ebfdef27153ee249a7038dc3 /daemon/daemon-main.c | |
parent | 02f30b8058e61bd3dc6ab70fab1f3b13bd748043 (diff) | |
download | gvfs-23535a0e56da1640f0d1d4ecd8f65f66880134cf.tar.gz |
gdbus: Use g_clear_object() where appropriate
Diffstat (limited to 'daemon/daemon-main.c')
-rw-r--r-- | daemon/daemon-main.c | 3 |
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) |