summaryrefslogtreecommitdiffstats
path: root/hacks/cwaves.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/cwaves.c')
-rw-r--r--hacks/cwaves.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hacks/cwaves.c b/hacks/cwaves.c
index 20dd80a..b032626 100644
--- a/hacks/cwaves.c
+++ b/hacks/cwaves.c
@@ -182,6 +182,11 @@ cwaves_event (Display *dpy, Window window, void *closure, XEvent *event)
static void
cwaves_free (Display *dpy, Window window, void *closure)
{
+ state *st = (state *) closure;
+ XFreeGC (dpy, st->gc);
+ free (st->colors);
+ free (st->waves);
+ free (st);
}