From 8dd2f615082f1e8bb6c213869ba7e89593d0cd59 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 19 Jun 2012 12:18:37 -0500 Subject: SessionMenuMgr shouldn't leak its user_menuitems GSList --- src/session-menu-mgr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/session-menu-mgr.c b/src/session-menu-mgr.c index 3bd66fc..b398dc2 100644 --- a/src/session-menu-mgr.c +++ b/src/session-menu-mgr.c @@ -213,6 +213,9 @@ session_menu_mgr_dispose (GObject *object) g_clear_object (&mgr->top_mi); g_clear_object (&mgr->session_dbus); + g_slist_free (mgr->user_menuitems); + mgr->user_menuitems = NULL; + G_OBJECT_CLASS (session_menu_mgr_parent_class)->dispose (object); } -- cgit v1.2.3