aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-file-utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/e-util/e-file-utils.c b/e-util/e-file-utils.c
index 3f5f85488a..ebb65f460e 100644
--- a/e-util/e-file-utils.c
+++ b/e-util/e-file-utils.c
@@ -93,8 +93,7 @@ file_replace_contents_cb (GFile *file,
context->new_etag = new_etag;
else {
g_warn_if_fail (new_etag == NULL);
- g_simple_async_result_set_from_error (simple, error);
- g_error_free (error);
+ g_simple_async_result_take_error (simple, error);
}
g_simple_async_result_complete (simple);