diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-06-19 12:18:37 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-06-19 12:18:37 -0500 |
commit | 8dd2f615082f1e8bb6c213869ba7e89593d0cd59 (patch) | |
tree | 1e164ad2d94224e416d41c174f6853dd87755626 | |
parent | fa521faf4e244ed5766a631f655eba091ba43368 (diff) | |
download | ayatana-indicator-session-8dd2f615082f1e8bb6c213869ba7e89593d0cd59.tar.gz ayatana-indicator-session-8dd2f615082f1e8bb6c213869ba7e89593d0cd59.tar.bz2 ayatana-indicator-session-8dd2f615082f1e8bb6c213869ba7e89593d0cd59.zip |
SessionMenuMgr shouldn't leak its user_menuitems GSList
-rw-r--r-- | src/session-menu-mgr.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |