summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-02-19 09:55:53 +0100
committerDanny Baumann <dannybaumann@web.de>2008-02-19 09:55:53 +0100
commit046b9e1722b30a56cdd51369dd251c22a8c83fb6 (patch)
tree22ea113aca36053bb924bf058befdf4df6c303bb
parentd9fd8ba30feb80d3435d200616012256cdc7f9d9 (diff)
downloadworkarounds-046b9e1722b30a56cdd51369dd251c22a8c83fb6.tar.gz
workarounds-046b9e1722b30a56cdd51369dd251c22a8c83fb6.tar.bz2
Don't access already free'd memory.
Fixes BZ #788.
-rw-r--r--workarounds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/workarounds.c b/workarounds.c
index d7b1483..c2c3095 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -143,7 +143,8 @@ workaroundsRemoveFromFullscreenList (CompWindow *w)
{
temp = mfw->next;
mfw->next = mfw->next->next;
- free (temp);
+ free (temp);
+ break;
}
}
}