[gnome-todo] panel-today: don't leak title



commit 45e5f684a0b1cf1547236548ded2e168eb3dc624
Author: Victor Toso <me victortoso com>
Date:   Thu Sep 29 18:44:05 2016 +0200

    panel-today: don't leak title
    
    6 bytes in 1 blocks are definitely lost in loss record 149 of 16,851
       at 0x4C2DB9D: malloc (vg_replace_malloc.c:299)
       by 0xA1F890E: g_malloc (gmem.c:94)
       by 0xA1F8BF0: g_malloc_n (gmem.c:331)
       by 0xA215121: g_strdup (gstrfuncs.c:363)
       by 0x42D384: gtd_panel_today_init (gtd-panel-today.c:315)
       by 0x9D70B32: g_type_create_instance (gtype.c:1866)
       by 0x9D57ED0: g_object_new_internal (gobject.c:1783)
       by 0x9D583DF: g_object_newv (gobject.c:1930)
       by 0x9D57A81: g_object_new (gobject.c:1623)
       by 0x42D4CF: gtd_panel_today_new (gtd-panel-today.c:344)
       by 0x42A657: gtd_plugin_eds_init (gtd-plugin-eds.c:352)
       by 0x9D70B32: g_type_create_instance (gtype.c:1866)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772212

 plugins/eds/gtd-panel-today.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/eds/gtd-panel-today.c b/plugins/eds/gtd-panel-today.c
index d50ab1a..151a681 100644
--- a/plugins/eds/gtd-panel-today.c
+++ b/plugins/eds/gtd-panel-today.c
@@ -234,6 +234,7 @@ gtd_panel_today_finalize (GObject *object)
 
   g_clear_object (&self->menu);
   g_clear_object (&self->task_list);
+  g_clear_pointer (&self->title, g_free);
 
   G_OBJECT_CLASS (gtd_panel_today_parent_class)->finalize (object);
 }


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