summaryrefslogtreecommitdiffstats
path: root/hacks/hexadrop.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/hexadrop.c')
-rw-r--r--hacks/hexadrop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hacks/hexadrop.c b/hacks/hexadrop.c
index 678a3c3..e8c2d65 100644
--- a/hacks/hexadrop.c
+++ b/hacks/hexadrop.c
@@ -277,7 +277,8 @@ hexadrop_init_1 (Display *dpy, Window window, state *st)
else
st->lockstep_p = get_boolean_resource (st->dpy, "lockstep","Lockstep");
}
-
+ if (s1) free (s1);
+ if (s2) free (s2);
st->sides = get_integer_resource (st->dpy, "sides", "Sides");
if (! (st->sides == 0 || st->sides == 3 || st->sides == 4 ||
@@ -355,6 +356,7 @@ hexadrop_free (Display *dpy, Window window, void *closure)
XFreeGC (st->dpy, st->gc);
st->gc = 0;
}
+ free (st);
}