From 745906b7db747ff328d5617b48d229500365823f Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Sat, 7 Apr 2007 21:42:05 +0000 Subject: [PATCH] Fix memory bug (invalid free) introduced in 2007-04-02 strut cleanup 2007-04-07 Elijah Newren * src/window.c (meta_window_free): Fix memory bug (invalid free) introduced in 2007-04-02 strut cleanup commit. Part of #427385. svn path=/trunk/; revision=3173 --- ChangeLog | 5 +++++ src/window.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e22233e4f..dc2c7ed87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-07 Elijah Newren + + * src/window.c (meta_window_free): Fix memory bug (invalid free) + introduced in 2007-04-02 strut cleanup commit. Part of #427385. + 2007-04-05 Thomas Thurman * src/theme_parser.c: if theme is invalid and therefore got diff --git a/src/window.c b/src/window.c index a11d7fe9f..2c2b3dc33 100644 --- a/src/window.c +++ b/src/window.c @@ -996,7 +996,7 @@ meta_window_free (MetaWindow *window, if (window->struts) { - g_free (window->struts); + meta_free_gslist_and_elements (window->struts); window->struts = NULL; meta_topic (META_DEBUG_WORKAREA,