summaryrefslogtreecommitdiff
path: root/workarounds.c
diff options
context:
space:
mode:
Diffstat (limited to 'workarounds.c')
-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);
}
}
}