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 /client/gdaemonmount.c | |
parent | 02f30b8058e61bd3dc6ab70fab1f3b13bd748043 (diff) | |
download | gvfs-23535a0e56da1640f0d1d4ecd8f65f66880134cf.tar.gz |
gdbus: Use g_clear_object() where appropriate
Diffstat (limited to 'client/gdaemonmount.c')
-rw-r--r-- | client/gdaemonmount.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/client/gdaemonmount.c b/client/gdaemonmount.c index fa29e07b..e3e32c10 100644 --- a/client/gdaemonmount.c +++ b/client/gdaemonmount.c @@ -188,18 +188,12 @@ typedef struct { static void async_proxy_create_free (AsyncProxyCreate *data) { - if (data->mount) - g_object_unref (data->mount); - if (data->result) - g_object_unref (data->result); - if (data->cancellable) - g_object_unref (data->cancellable); - if (data->mount_operation) - g_object_unref (data->mount_operation); - if (data->connection) - g_object_unref (data->connection); - if (data->proxy) - g_object_unref (data->proxy); + g_clear_object (&data->mount); + g_clear_object (&data->result); + g_clear_object (&data->cancellable); + g_clear_object (&data->mount_operation); + g_clear_object (&data->connection); + g_clear_object (&data->proxy); g_free (data); } |