summaryrefslogtreecommitdiff
path: root/client/gdaemonfile.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2012-07-23 18:40:24 +0200
committerTomas Bzatek <tbzatek@redhat.com>2012-07-31 11:59:38 +0200
commit6b5b2b4c1f28bdd61e8a2dc24b66191436378910 (patch)
tree9db1de0edacc825e8144b2b7c0617cd192779b09 /client/gdaemonfile.c
parent23535a0e56da1640f0d1d4ecd8f65f66880134cf (diff)
downloadgvfs-6b5b2b4c1f28bdd61e8a2dc24b66191436378910.tar.gz
gdbus: Use g_clear_error() where appropriate
Diffstat (limited to 'client/gdaemonfile.c')
-rw-r--r--client/gdaemonfile.c7
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);