summaryrefslogtreecommitdiffstats
path: root/hacks/squiral.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/squiral.c')
-rw-r--r--hacks/squiral.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hacks/squiral.c b/hacks/squiral.c
index a38e060..c1fa16f 100644
--- a/hacks/squiral.c
+++ b/hacks/squiral.c
@@ -253,6 +253,12 @@ static void
squiral_free (Display *dpy, Window window, void *closure)
{
struct state *st = (struct state *) closure;
+ if (st->worms) free (st->worms);
+ if (st->fill) free (st->fill);
+/* if (st->ncolors)
+ free_colors (st->xgwa.screen, st->xgwa.cmap, st->colors, st->ncolors); */
+ XFreeGC (dpy, st->draw_gc);
+ XFreeGC (dpy, st->erase_gc);
free (st);
}