diff options
Diffstat (limited to 'hacks/maze.c')
-rw-r--r-- | hacks/maze.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hacks/maze.c b/hacks/maze.c index a0007dd..acaeba5 100644 --- a/hacks/maze.c +++ b/hacks/maze.c @@ -1655,6 +1655,16 @@ static void maze_free (Display *dpy, Window window, void *closure) { struct state *st = (struct state *) closure; + XFreeGC (dpy, st->gc); + XFreeGC (dpy, st->cgc); + XFreeGC (dpy, st->tgc); + XFreeGC (dpy, st->sgc); + XFreeGC (dpy, st->ugc); + XFreeGC (dpy, st->logo_gc); + XFreeGC (dpy, st->erase_gc); + if (st->solve_state) free (st->solve_state); + if (st->logo_map) XFreePixmap (dpy, st->logo_map); + exit_sets (st); free (st); } |