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/gvfsiconloadable.c | |
parent | 02f30b8058e61bd3dc6ab70fab1f3b13bd748043 (diff) | |
download | gvfs-23535a0e56da1640f0d1d4ecd8f65f66880134cf.tar.gz |
gdbus: Use g_clear_object() where appropriate
Diffstat (limited to 'client/gvfsiconloadable.c')
-rw-r--r-- | client/gvfsiconloadable.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/client/gvfsiconloadable.c b/client/gvfsiconloadable.c index 987bdbc6..919eb62b 100644 --- a/client/gvfsiconloadable.c +++ b/client/gvfsiconloadable.c @@ -162,17 +162,13 @@ typedef struct { static void async_path_call_free (AsyncPathCall *data) { - if (data->connection) - g_object_unref (data->connection); + g_clear_object (&data->connection); if (data->mount_info) g_mount_info_unref (data->mount_info); - if (data->result) - g_object_unref (data->result); + g_clear_object (&data->result); g_object_unref (data->vfs_icon); - if (data->cancellable) - g_object_unref (data->cancellable); - if (data->proxy) - g_object_unref (data->proxy); + g_clear_object (&data->cancellable); + g_clear_object (&data->proxy); g_free (data); } |