diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-23 18:40:24 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2012-07-31 11:59:38 +0200 |
commit | 6b5b2b4c1f28bdd61e8a2dc24b66191436378910 (patch) | |
tree | 9db1de0edacc825e8144b2b7c0617cd192779b09 /client/gdaemonfile.c | |
parent | 23535a0e56da1640f0d1d4ecd8f65f66880134cf (diff) | |
download | gvfs-6b5b2b4c1f28bdd61e8a2dc24b66191436378910.tar.gz |
gdbus: Use g_clear_error() where appropriate
Diffstat (limited to 'client/gdaemonfile.c')
-rw-r--r-- | client/gdaemonfile.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/client/gdaemonfile.c b/client/gdaemonfile.c index cef7cb57..bb46b875 100644 --- a/client/gdaemonfile.c +++ b/client/gdaemonfile.c @@ -2767,7 +2767,7 @@ g_daemon_file_set_attribute (GFile *file, else if (g_error_matches (my_error, G_VFS_ERROR, G_VFS_ERROR_RETRY)) { - g_error_free (my_error); + g_clear_error (&my_error); g_object_unref (proxy); goto retry; } @@ -3008,7 +3008,7 @@ retry: else if (g_error_matches (my_error, G_VFS_ERROR, G_VFS_ERROR_RETRY)) { - g_error_free (my_error); + g_clear_error (&my_error); g_object_unref (proxy); goto retry; } @@ -3545,8 +3545,7 @@ find_enclosing_mount_cb (GMountInfo *mount_info, out: _g_simple_async_result_complete_with_cancellable (data->result, data->cancellable); - if (my_error) - g_error_free (my_error); + g_clear_error (&my_error); g_clear_object (&data->cancellable); g_object_unref (data->file); g_object_unref (data->result); |