summaryrefslogtreecommitdiffstats
path: root/hacks/popsquares.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/popsquares.c')
-rw-r--r--hacks/popsquares.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hacks/popsquares.c b/hacks/popsquares.c
index 3b83fd7..4fc16a7 100644
--- a/hacks/popsquares.c
+++ b/hacks/popsquares.c
@@ -265,6 +265,9 @@ static void
popsquares_free (Display *dpy, Window window, void *closure)
{
struct state *st = (struct state *) closure;
+ XFreeGC (dpy, st->gc);
+ free (st->colors);
+ free (st->squares);
free (st);
}