diff options
author | Elijah Newren <newren gmail com> | 2007-04-07 21:42:05 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2007-04-07 21:42:05 +0000 |
commit | 745906b7db747ff328d5617b48d229500365823f (patch) | |
tree | 4bdb0f9c1fe06497a7b1c3862296f32c7092061a | |
parent | 8fe344db5169af4a9e4dda2661046162350b7b1d (diff) | |
download | metacity-745906b7db747ff328d5617b48d229500365823f.tar.gz |
Fix memory bug (invalid free) introduced in 2007-04-02 strut cleanup
2007-04-07 Elijah Newren <newren gmail com>
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/window.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2007-04-07 Elijah Newren <newren gmail com> + + * 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 <thomas@thurman.org.uk> * src/theme_parser.c: if theme is invalid and therefore got diff --git a/src/window.c b/src/window.c index a11d7fe9..2c2b3dc3 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, |