summaryrefslogtreecommitdiffstats
path: root/hacks/hexadrop.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-18 11:55:58 +0100
committerSimon Rettberg2019-02-18 11:55:58 +0100
commitaa7530630e595b80d5db54655fd827b61edc0fd7 (patch)
tree048cb74072450c7592f254c3537ac8f252d09d73 /hacks/hexadrop.c
parentForgot one DPMS killing instance (diff)
parentUpdate to 5.42 (diff)
downloadxscreensaver-aa7530630e595b80d5db54655fd827b61edc0fd7.tar.gz
xscreensaver-aa7530630e595b80d5db54655fd827b61edc0fd7.tar.xz
xscreensaver-aa7530630e595b80d5db54655fd827b61edc0fd7.zip
Merge branch 'master' into openslxv23
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);
}