summaryrefslogtreecommitdiffstats
path: root/hacks/fluidballs.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/fluidballs.c')
-rw-r--r--hacks/fluidballs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/hacks/fluidballs.c b/hacks/fluidballs.c
index 9273082..533ee2d 100644
--- a/hacks/fluidballs.c
+++ b/hacks/fluidballs.c
@@ -800,6 +800,17 @@ static void
fluidballs_free (Display *dpy, Window window, void *closure)
{
b_state *state = (b_state *) closure;
+ XFreeGC (dpy, state->draw_gc);
+ XFreeGC (dpy, state->draw_gc2);
+ XFreeGC (dpy, state->erase_gc);
+ free (state->m);
+ free (state->r);
+ free (state->vx);
+ free (state->vy);
+ free (state->px);
+ free (state->py);
+ free (state->opx);
+ free (state->opy);
free (state);
}