[mutter] meta_stack_update_window_tile_matches(): Fix leaked GList
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] meta_stack_update_window_tile_matches(): Fix leaked GList
- Date: Sat, 24 Mar 2012 18:31:49 +0000 (UTC)
commit 98d427ddbaa75a00197176bb52aa31a30e1917cd
Author: Pavel Vasin <rat4vier gmail com>
Date: Fri Mar 23 09:58:52 2012 +0400
meta_stack_update_window_tile_matches(): Fix leaked GList
https://bugzilla.gnome.org/show_bug.cgi?id=672640
src/core/stack.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/core/stack.c b/src/core/stack.c
index 42dd67c..5c31cdf 100644
--- a/src/core/stack.c
+++ b/src/core/stack.c
@@ -257,16 +257,17 @@ void
meta_stack_update_window_tile_matches (MetaStack *stack,
MetaWorkspace *workspace)
{
- GList *windows;
+ GList *windows, *tmp;
if (stack->freeze_count > 0)
return;
windows = meta_stack_list_windows (stack, workspace);
- while (windows)
+ tmp = windows;
+ while (tmp)
{
- meta_window_compute_tile_match ((MetaWindow *) windows->data);
- windows = windows->next;
+ meta_window_compute_tile_match ((MetaWindow *) tmp->data);
+ tmp = tmp->next;
}
g_list_free (windows);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]