summaryrefslogtreecommitdiffstats
path: root/hacks/cynosure.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/cynosure.c')
-rw-r--r--hacks/cynosure.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hacks/cynosure.c b/hacks/cynosure.c
index 8b8b85b..3eaa397 100644
--- a/hacks/cynosure.c
+++ b/hacks/cynosure.c
@@ -409,6 +409,11 @@ static void
cynosure_free (Display *dpy, Window window, void *closure)
{
struct state *st = (struct state *) closure;
+ XFreeGC (dpy, st->fg_gc);
+ XFreeGC (dpy, st->bg_gc);
+ XFreeGC (dpy, st->shadow_gc);
+ if (st->colors) free (st->colors);
+ if (st->colors2) free (st->colors2);
free (st);
}