summaryrefslogtreecommitdiffstats
path: root/hacks/hexadrop.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-18 11:55:41 +0100
committerSimon Rettberg2019-02-18 11:55:41 +0100
commitae69a754244c4e475c8d2591772ca8e005071d83 (patch)
tree58b3fa7abc2dcfe3c23e1c0ce108950c720826ab /hacks/hexadrop.c
parentUpdate gitignore (diff)
downloadxscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.gz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.xz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.zip
Update to 5.42
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);
}