diff options
author | Christian Persch <chpe@gnome.org> | 2010-09-23 13:02:50 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2010-11-03 14:25:35 +0100 |
commit | 9e0c07870af1dac84c033031cf301671779c8328 (patch) | |
tree | 70354004512aad7d289ea30a031afdede65f694c /gio/gproxyaddressenumerator.c | |
parent | 63b87b2c26bf983823f83943b8d752bd053ce539 (diff) | |
download | glib-9e0c07870af1dac84c033031cf301671779c8328.tar.gz |
Use g_simple_async_result_{new_,}take_error
Bug #633685.
Diffstat (limited to 'gio/gproxyaddressenumerator.c')
-rw-r--r-- | gio/gproxyaddressenumerator.c | 17 |
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 { |