From 126aa2398abc1bbab0fd0cd76fda5042cc83fe76 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 6 Oct 2011 09:35:14 -0400 Subject: Prefer g_simple_async_result_take_error(). Slightly more efficient and convenient than: g_simple_async_result_set_from_error (simple, error); g_error_free (error); One less GError to copy and destroy. --- e-util/e-file-utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'e-util/e-file-utils.c') 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); -- cgit v1.2.3