summaryrefslogtreecommitdiffstats
path: root/hacks/whirlygig.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/whirlygig.c')
-rw-r--r--hacks/whirlygig.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hacks/whirlygig.c b/hacks/whirlygig.c
index 22c7ddd..8c3bd1f 100644
--- a/hacks/whirlygig.c
+++ b/hacks/whirlygig.c
@@ -655,6 +655,13 @@ whirlygig_event (Display *dpy, Window window, void *closure, XEvent *event)
static void
whirlygig_free (Display *dpy, Window window, void *closure)
{
+ struct state *st = (struct state *) closure;
+ free (st->info);
+ XFreeGC (dpy, st->fgc);
+ XFreeGC (dpy, st->bgc);
+ if (st->xmode_str) free (st->xmode_str);
+ if (st->ymode_str) free (st->ymode_str);
+ free (st);
}