[libgdata] documents: Minor code tidy-up



commit a5c74e837946d72764b471d1ac75897bf2f2d406
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Aug 1 09:09:25 2013 +0200

    documents: Minor code tidy-up

 gdata/services/documents/gdata-documents-service.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gdata/services/documents/gdata-documents-service.c 
b/gdata/services/documents/gdata-documents-service.c
index 20d82f1..5e617d8 100644
--- a/gdata/services/documents/gdata-documents-service.c
+++ b/gdata/services/documents/gdata-documents-service.c
@@ -1337,8 +1337,7 @@ remove_entry_from_folder_thread (GSimpleAsyncResult *result, GDataDocumentsServi
        /* Remove the entry from the folder and return */
        updated_entry = gdata_documents_service_remove_entry_from_folder (service, data->entry, data->folder, 
cancellable, &error);
        if (error != NULL) {
-               g_simple_async_result_set_from_error (result, error);
-               g_error_free (error);
+               g_simple_async_result_take_error (result, error);
                return;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]