summaryrefslogtreecommitdiff
path: root/client/gvfsdaemondbus.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/gvfsdaemondbus.c
parent23535a0e56da1640f0d1d4ecd8f65f66880134cf (diff)
downloadgvfs-6b5b2b4c1f28bdd61e8a2dc24b66191436378910.tar.gz
gdbus: Use g_clear_error() where appropriate
Diffstat (limited to 'client/gvfsdaemondbus.c')
-rw-r--r--client/gvfsdaemondbus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/gvfsdaemondbus.c b/client/gvfsdaemondbus.c
index 3ed9fd4e..c2cdb24f 100644
--- a/client/gvfsdaemondbus.c
+++ b/client/gvfsdaemondbus.c
@@ -300,8 +300,7 @@ async_call_finish (AsyncDBusCall *async_call)
g_clear_object (&async_call->connection);
g_clear_object (&async_call->cancellable);
- if (async_call->io_error)
- g_error_free (async_call->io_error);
+ g_clear_error (&async_call->io_error);
g_free (async_call);
}