summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren gmail com>2007-04-07 21:42:05 +0000
committerElijah Newren <newren@src.gnome.org>2007-04-07 21:42:05 +0000
commit745906b7db747ff328d5617b48d229500365823f (patch)
tree4bdb0f9c1fe06497a7b1c3862296f32c7092061a
parent8fe344db5169af4a9e4dda2661046162350b7b1d (diff)
downloadmetacity-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--ChangeLog5
-rw-r--r--src/window.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e22233e4..dc2c7ed8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,