summaryrefslogtreecommitdiff
path: root/gio/gproxyaddressenumerator.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2010-09-23 13:02:50 +0200
committerChristian Persch <chpe@gnome.org>2010-11-03 14:25:35 +0100
commit9e0c07870af1dac84c033031cf301671779c8328 (patch)
tree70354004512aad7d289ea30a031afdede65f694c /gio/gproxyaddressenumerator.c
parent63b87b2c26bf983823f83943b8d752bd053ce539 (diff)
downloadglib-9e0c07870af1dac84c033031cf301671779c8328.tar.gz
Use g_simple_async_result_{new_,}take_error
Bug #633685.
Diffstat (limited to 'gio/gproxyaddressenumerator.c')
-rw-r--r--gio/gproxyaddressenumerator.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/gio/gproxyaddressenumerator.c b/gio/gproxyaddressenumerator.c
index 29604dc22..460c30c13 100644
--- a/gio/gproxyaddressenumerator.c
+++ b/gio/gproxyaddressenumerator.c
@@ -393,14 +393,9 @@ dest_hostname_lookup_cb (GObject *object,
result,
&error);
if (priv->dest_ips)
- {
- save_result (priv);
- }
+ save_result (priv);
else
- {
- g_simple_async_result_set_from_error (simple, error);
- g_error_free (error);
- }
+ g_simple_async_result_take_error (simple, error);
complete_async (priv);
}
@@ -459,10 +454,7 @@ address_enumerate_cb (GObject *object,
}
if (error)
- {
- g_simple_async_result_set_from_error (simple, error);
- g_error_free (error);
- }
+ g_simple_async_result_take_error (simple, error);
complete_async (priv);
}
@@ -483,8 +475,7 @@ proxy_lookup_cb (GObject *object,
if (error)
{
- g_simple_async_result_set_from_error (simple, error);
- g_error_free (error);
+ g_simple_async_result_take_error (simple, error);
}
else
{