summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-08-24 23:18:29 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-08-24 23:18:29 -0500
commit55dccdae63c27e61363e54b897c62078b3c0563e (patch)
tree5844fc6184f4399a82f2e0741b06ec5119bb4c47
parentc00a0c74e343d45d9382e0183070bcc41cb87c88 (diff)
downloadshelf-55dccdae63c27e61363e54b897c62078b3c0563e.tar.gz
shelf-55dccdae63c27e61363e54b897c62078b3c0563e.tar.bz2
Fix memory leaks.
-rw-r--r--shelf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shelf.c b/shelf.c
index e6b636c..d7ab151 100644
--- a/shelf.c
+++ b/shelf.c
@@ -202,6 +202,7 @@ shelfUnshapeInput (CompWindow *w)
XShapeCombineRectangles (dpy, w->id, ShapeInput, 0, 0,
sw->info->inputRects, sw->info->nInputRects,
ShapeSet, sw->info->inputRectOrdering);
+ free (sw->info->inputRects);
}
else
{
@@ -217,6 +218,7 @@ shelfUnshapeInput (CompWindow *w)
sw->info->frameNInputRects,
ShapeSet,
sw->info->frameInputRectOrdering);
+ free (sw->info->frameInputRects);
}
else
{