summaryrefslogtreecommitdiffstats
path: root/hacks/truchet.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/truchet.c')
-rw-r--r--hacks/truchet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hacks/truchet.c b/hacks/truchet.c
index d0276f7..d635146 100644
--- a/hacks/truchet.c
+++ b/hacks/truchet.c
@@ -529,6 +529,10 @@ truchet_event (Display *dpy, Window window, void *closure, XEvent *event)
static void
truchet_free (Display *dpy, Window window, void *closure)
{
+ struct state *st = (struct state *) closure;
+ XFreeGC (dpy, st->agc);
+ XFreeGC (dpy, st->bgc);
+ free (st);
}