[gnome-todo] panel-schedule: free GList on finalize



commit c74fa29936681b0d316126f6c6b03b732bca380d
Author: Victor Toso <me victortoso com>
Date:   Fri Oct 28 00:03:44 2016 +0200

    panel-schedule: free GList on finalize
    
    192 (24 direct, 168 indirect) bytes in 1 blocks are definitely lost in loss record 14,713 of 16,007
       at 0x4C2DB9D: malloc (vg_replace_malloc.c:299)
       by 0xA5229D5: g_malloc (gmem.c:94)
       by 0xA53CB3D: g_slice_alloc (gslice.c:1025)
       by 0xA5163CF: g_list_prepend (glist.c:311)
       by 0x435AB6: gtd_panel_scheduled_count_tasks (gtd-panel-scheduled.c:319)
       by 0xA07D61B: g_cclosure_marshal_VOID__OBJECT (gmarshal.c:2062)
       by 0xA078997: g_closure_invoke (gclosure.c:804)
       by 0xA095EC0: signal_emit_unlocked_R (gsignal.c:3635)
       by 0xA0951F7: g_signal_emit_valist (gsignal.c:3391)
       by 0xA095739: g_signal_emit (gsignal.c:3447)
       by 0x411527: gtd_manager__task_list_modified (gtd-manager.c:374)
    
    Signed-off-by: Victor Toso <victortoso redhat com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=773606

 plugins/scheduled-panel/gtd-panel-scheduled.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/scheduled-panel/gtd-panel-scheduled.c b/plugins/scheduled-panel/gtd-panel-scheduled.c
index 169d7ea..71094f3 100644
--- a/plugins/scheduled-panel/gtd-panel-scheduled.c
+++ b/plugins/scheduled-panel/gtd-panel-scheduled.c
@@ -397,6 +397,7 @@ gtd_panel_scheduled_finalize (GObject *object)
 
   g_clear_object (&self->menu);
   g_clear_pointer (&self->title, g_free);
+  g_clear_pointer (&self->task_list, g_list_free);
 
   G_OBJECT_CLASS (gtd_panel_scheduled_parent_class)->finalize (object);
 }


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