[gnome-todo] eds-provider: don't free data early



commit e75af14599611ecc4a574682551bf7efa7b9f6f8
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Sun Jul 3 05:46:47 2016 +0530

    eds-provider: don't free data early
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768319

 plugins/eds/gtd-provider-eds.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/eds/gtd-provider-eds.c b/plugins/eds/gtd-provider-eds.c
index 4feb474..3a4fb3b 100644
--- a/plugins/eds/gtd-provider-eds.c
+++ b/plugins/eds/gtd-provider-eds.c
@@ -582,9 +582,9 @@ gtd_provider_eds_update_task_finished (GObject      *client,
       g_error_free (error);
     }
 
-  g_free (data);
-
   gtd_object_set_ready (GTD_OBJECT (data->data), TRUE);
+
+  g_free (data);
 }
 
 static void


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