summaryrefslogtreecommitdiff
path: root/gio/gfileoutputstream.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/gfileoutputstream.c
parent63b87b2c26bf983823f83943b8d752bd053ce539 (diff)
downloadglib-9e0c07870af1dac84c033031cf301671779c8328.tar.gz
Use g_simple_async_result_{new_,}take_error
Bug #633685.
Diffstat (limited to 'gio/gfileoutputstream.c')
-rw-r--r--gio/gfileoutputstream.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gio/gfileoutputstream.c b/gio/gfileoutputstream.c
index b3e16ecf2..735b6d8fc 100644
--- a/gio/gfileoutputstream.c
+++ b/gio/gfileoutputstream.c
@@ -524,10 +524,7 @@ query_info_async_thread (GSimpleAsyncResult *res,
_("Stream doesn't support query_info"));
if (info == NULL)
- {
- g_simple_async_result_set_from_error (res, error);
- g_error_free (error);
- }
+ g_simple_async_result_take_error (res, error);
else
data->info = info;
}