[gnome-todo] panel-today: don't leak GMenu
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] panel-today: don't leak GMenu
- Date: Thu, 29 Sep 2016 22:21:45 +0000 (UTC)
commit efe30858cfa978269428911a08e1fea068d27ce0
Author: Victor Toso <me victortoso com>
Date: Thu Sep 29 17:51:56 2016 +0200
panel-today: don't leak GMenu
761 (48 direct, 713 indirect) bytes in 1 blocks are definitely lost in loss record 16,350 of 16,929
at 0x4C2DB9D: malloc (vg_replace_malloc.c:299)
by 0xA20D90E: g_malloc (gmem.c:94)
by 0xA227A55: g_slice_alloc (gslice.c:1025)
by 0xA227A95: g_slice_alloc0 (gslice.c:1051)
by 0x9D85A6F: g_type_create_instance (gtype.c:1848)
by 0x9D6CED0: g_object_new_internal (gobject.c:1783)
by 0x9D6D3DF: g_object_newv (gobject.c:1930)
by 0x9D6CA81: g_object_new (gobject.c:1623)
by 0x8DA8352: g_menu_new (gmenu.c:249)
by 0x42D2D8: gtd_panel_today_init (gtd-panel-today.c:320)
by 0x9D85B32: g_type_create_instance (gtype.c:1866)
by 0x9D6CED0: g_object_new_internal (gobject.c:1783)
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 064896c..d50ab1a 100644
--- a/plugins/eds/gtd-panel-today.c
+++ b/plugins/eds/gtd-panel-today.c
@@ -232,6 +232,7 @@ gtd_panel_today_finalize (GObject *object)
{
GtdPanelToday *self = (GtdPanelToday *)object;
+ g_clear_object (&self->menu);
g_clear_object (&self->task_list);
G_OBJECT_CLASS (gtd_panel_today_parent_class)->finalize (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]