diff options
Diffstat (limited to 'hacks/munch.c')
-rw-r--r-- | hacks/munch.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hacks/munch.c b/hacks/munch.c index 836731a..fe8f60f 100644 --- a/hacks/munch.c +++ b/hacks/munch.c @@ -334,6 +334,7 @@ munch_init (Display *dpy, Window w) st->mismunch = random() & 1; else st->mismunch = get_boolean_resource (st->dpy, "mismunch", "Mismunch"); + if (mm) free (mm); st->window_width = xgwa.width; st->window_height = xgwa.height; @@ -439,6 +440,11 @@ static void munch_free (Display *dpy, Window window, void *closure) { struct state *st = (struct state *) closure; + int i; + XFreeGC (dpy, st->gc); + for (i = 0; i < st->simul; i++) + free (st->munchers[i]); + free (st->munchers); free (st); } |