From ae69a754244c4e475c8d2591772ca8e005071d83 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 18 Feb 2019 11:55:41 +0100 Subject: Update to 5.42 --- hacks/intermomentary.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'hacks/intermomentary.c') diff --git a/hacks/intermomentary.c b/hacks/intermomentary.c index 4e65b76..fc5b932 100644 --- a/hacks/intermomentary.c +++ b/hacks/intermomentary.c @@ -543,6 +543,22 @@ static void intermomentary_free (Display *dpy, Window window, void *closure) { struct state *st = (struct state *) closure; + if (st->f) { + if (st->f->off_alpha) free(st->f->off_alpha); + if (st->f->off_map != window) XFreePixmap (dpy, st->f->off_map); + if (st->f->discs) { + int i; + for (i = 0; i < st->f->num; i++) { + if (st->f->discs[i].pxRiders) free (st->f->discs[i].pxRiders); + } + free (st->f->discs); + } + free (st->f); + } + if (st->colors) free (st->colors); + XFreeGC (dpy, st->fgc); + XFreeGC (dpy, st->copygc); + free (st); } -- cgit v1.2.3-55-g7522