aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-06-19 12:22:43 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-06-19 12:22:43 -0500
commit7c5b6382ccb5d557a33c2f8bd6d41e7b474fdcd1 (patch)
tree996008b3efedbd7d1108b7147c836fbc778ec798 /src
parent8dd2f615082f1e8bb6c213869ba7e89593d0cd59 (diff)
downloadayatana-indicator-session-7c5b6382ccb5d557a33c2f8bd6d41e7b474fdcd1.tar.gz
ayatana-indicator-session-7c5b6382ccb5d557a33c2f8bd6d41e7b474fdcd1.tar.bz2
ayatana-indicator-session-7c5b6382ccb5d557a33c2f8bd6d41e7b474fdcd1.zip
in build_user_menuitems(), don't leak the users GList even if user switching isn't allowed
Diffstat (limited to 'src')
-rw-r--r--src/session-menu-mgr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session-menu-mgr.c b/src/session-menu-mgr.c
index b398dc2..d676337 100644
--- a/src/session-menu-mgr.c
+++ b/src/session-menu-mgr.c
@@ -909,9 +909,10 @@ build_user_menuitems (SessionMenuMgr * mgr)
dbusmenu_menuitem_child_add_position (mgr->top_mi, mi, pos++);
items = g_slist_prepend (items, mi);
}
- g_list_free (users);
}
+ g_list_free (users);
+
/* separator */
mi = mi_new_separator ();
dbusmenu_menuitem_child_add_position (mgr->top_mi, mi, pos++);