[gnome-todo] todo-txt: unref GFile rather than free



commit b9e5b6b42684fa8ff45daa1aebc4b1f4a81e8813
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Feb 14 09:50:26 2017 -0200

    todo-txt: unref GFile rather than free
    
    This causes an immediate segfault.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778587

 plugins/todo-txt/gtd-provider-todo-txt.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/todo-txt/gtd-provider-todo-txt.c b/plugins/todo-txt/gtd-provider-todo-txt.c
index fa0d7c0..9a0ab53 100644
--- a/plugins/todo-txt/gtd-provider-todo-txt.c
+++ b/plugins/todo-txt/gtd-provider-todo-txt.c
@@ -1093,9 +1093,9 @@ gtd_provider_todo_txt_finalize (GObject *object)
   g_clear_pointer (&self->lists, g_hash_table_destroy);
   g_clear_pointer (&self->root_tasks, g_hash_table_destroy);
   g_clear_pointer (&self->tasklists, g_clear_object);
-  g_clear_pointer (&self->source_file, g_free);
-  g_clear_object (&self->icon);
   g_clear_pointer (&self->source, g_free);
+  g_clear_object (&self->source_file);
+  g_clear_object (&self->icon);
 
   G_OBJECT_CLASS (gtd_provider_todo_txt_parent_class)->finalize (object);
 }


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