From 1e580d1e5263c7cc76e00ecfb6916a0973138e93 Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Thu, 27 Jan 2005 18:30:27 +0000 Subject: [PATCH] Plug a pair of leaks. Fixes #165378 2005-01-27 Elijah Newren Plug a pair of leaks. Fixes #165378 * src/place.c: (meta_window_place, get_windows_on_same_workspace): free list returned by meta_display_list_windows. --- ChangeLog | 7 +++++++ src/place.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8006bb5a5..3dfd63c14 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-01-27 Elijah Newren + + Plug a pair of leaks. Fixes #165378 + + * src/place.c: (meta_window_place, get_windows_on_same_workspace): + free list returned by meta_display_list_windows. + 2005-01-27 Elijah Newren Treat splashscreens same as other windows for stacking. Fixes diff --git a/src/place.c b/src/place.c index 9eae27845..0da7c1334 100644 --- a/src/place.c +++ b/src/place.c @@ -755,6 +755,8 @@ meta_window_place (MetaWindow *window, tmp = tmp->next; } + + g_slist_free (all_windows); } /* Warning, this is a round trip! */ @@ -888,6 +890,8 @@ get_windows_on_same_workspace (MetaWindow *window, if (n_windows) *n_windows = i; + g_slist_free (all_windows); + return windows; }