summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-01-15 15:09:41 +0100
committerDennis kasprzyk <onestone@opencompositing.org>2008-01-15 15:09:41 +0100
commit246896e8d02338e8ea382cbb800b0b6f2b811d8b (patch)
tree2107f2ca65da3b52cba21da35466e0d2f234db72
parent4c973b9c744ec69ba179e729267f5b1136575fc2 (diff)
downloadworkarounds-246896e8d02338e8ea382cbb800b0b6f2b811d8b.tar.gz
workarounds-246896e8d02338e8ea382cbb800b0b6f2b811d8b.tar.bz2
Free the right thing.
-rw-r--r--workarounds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/workarounds.c b/workarounds.c
index b41a004..bd9596f 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -120,6 +120,7 @@ static void
workaroundsRemoveFromFullscreenList (CompWindow *w)
{
WorkaroundsManagedFsWindow *mfw;
+ WorkaroundsManagedFsWindow *temp;
WORKAROUNDS_DISPLAY (w->screen->display);
@@ -138,8 +139,9 @@ workaroundsRemoveFromFullscreenList (CompWindow *w)
{
if (mfw->next->id == w->id)
{
+ temp = mfw->next;
mfw->next = mfw->next->next;
- free (mfw->next);
+ free (temp);
}
}
}