summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-01-06 18:06:56 +0100
committerDanny Baumann <dannybaumann@web.de>2008-01-06 18:06:56 +0100
commit023edd46578b63aee7955cea4df56d275175aa4c (patch)
tree83cd9bafe6cc6cd645f42c36bebb25ec6b384308
parenta33bdb2bfe0127178603600c2d176164cb69aa16 (diff)
downloadworkarounds-023edd46578b63aee7955cea4df56d275175aa4c.tar.gz
workarounds-023edd46578b63aee7955cea4df56d275175aa4c.tar.bz2
Fix potential memleak.
-rw-r--r--workarounds.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/workarounds.c b/workarounds.c
index db17be4..4a95c25 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -328,8 +328,13 @@ workaroundsFixupFullscreen (CompWindow *w)
recalcWindowActions (w);
updateWindowAttributes (w, CompStackingUpdateModeNormal);
}
+
+ mfwPrev->next = mfw->next;
+ free (mfw);
+
break;
}
+ mfwPrev = mfw;
}
}
}