summaryrefslogtreecommitdiffstats
path: root/hacks/boxfit.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/boxfit.c
parentUpdate gitignore (diff)
downloadxscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.gz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.xz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.zip
Update to 5.42
Diffstat (limited to 'hacks/boxfit.c')
-rw-r--r--hacks/boxfit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hacks/boxfit.c b/hacks/boxfit.c
index 1b1d0d7..09d2ef7 100644
--- a/hacks/boxfit.c
+++ b/hacks/boxfit.c
@@ -88,6 +88,7 @@ reset_boxes (state *st)
progname, s);
exit (1);
}
+ free (s);
}
if (st->mode == -1)
@@ -514,6 +515,11 @@ boxfit_event (Display *dpy, Window window, void *closure, XEvent *event)
static void
boxfit_free (Display *dpy, Window window, void *closure)
{
+ state *st = (state *) closure;
+ if (st->boxes) free (st->boxes);
+ if (st->colors) free (st->colors);
+ XFreeGC (dpy, st->gc);
+ free (st);
}