meta_display_get_tab_list(): Fix leaked GSList
https://bugzilla.gnome.org/show_bug.cgi?id=672640
This commit is contained in:
parent
98d427ddba
commit
423bda908e
1 changed files with 5 additions and 2 deletions
|
@ -4654,12 +4654,13 @@ meta_display_get_tab_list (MetaDisplay *display,
|
|||
tab_list = g_list_reverse (tab_list);
|
||||
|
||||
{
|
||||
GSList *tmp;
|
||||
GSList *windows, *tmp;
|
||||
MetaWindow *l_window;
|
||||
|
||||
tmp = meta_display_list_windows (display, META_LIST_DEFAULT);
|
||||
windows = meta_display_list_windows (display, META_LIST_DEFAULT);
|
||||
|
||||
/* Go through all windows */
|
||||
tmp = windows;
|
||||
while (tmp != NULL)
|
||||
{
|
||||
l_window=tmp->data;
|
||||
|
@ -4675,6 +4676,8 @@ meta_display_get_tab_list (MetaDisplay *display,
|
|||
|
||||
tmp = tmp->next;
|
||||
} /* End while tmp!=NULL */
|
||||
|
||||
g_slist_free (windows);
|
||||
}
|
||||
|
||||
return tab_list;
|
||||
|
|
Loading…
Reference in a new issue