[gnome-todo] window: don't leak GtdNotification
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] window: don't leak GtdNotification
- Date: Thu, 29 Sep 2016 22:22:05 +0000 (UTC)
commit 5ffffeeb2b0b42372224991115aa98931df858fe
Author: Victor Toso <me victortoso com>
Date: Thu Sep 29 18:39:12 2016 +0200
window: don't leak GtdNotification
163 (40 direct, 123 indirect) bytes in 1 blocks are definitely lost in loss record 15,207 of 16,913
at 0x9D709EF: g_type_create_instance (gtype.c:1844)
by 0x9D57ED0: g_object_new_internal (gobject.c:1783)
by 0x9D58B24: g_object_new_valist (gobject.c:2042)
by 0x9D57AD0: g_object_new (gobject.c:1626)
by 0x412EE6: gtd_notification_new (gtd-notification.c:285)
by 0x429795: gtd_window_init (gtd-window.c:817)
by 0x9D70B32: g_type_create_instance (gtype.c:1866)
by 0x9D57ED0: g_object_new_internal (gobject.c:1783)
by 0x9D58B24: g_object_new_valist (gobject.c:2042)
by 0x9D57AD0: g_object_new (gobject.c:1626)
by 0x429033: gtd_window_new (gtd-window.c:633)
by 0x41CBF8: run_window (gtd-application.c:169)
https://bugzilla.gnome.org/show_bug.cgi?id=772212
src/gtd-window.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gtd-window.c b/src/gtd-window.c
index 6a07476..bd9104f 100644
--- a/src/gtd-window.c
+++ b/src/gtd-window.c
@@ -639,6 +639,9 @@ gtd_window_new (GtdApplication *application)
static void
gtd_window_finalize (GObject *object)
{
+ GtdWindowPrivate *priv = GTD_WINDOW (object)->priv;
+
+ g_clear_object (&priv->loading_notification);
G_OBJECT_CLASS (gtd_window_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]