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/hypercube.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hacks/hypercube.c') diff --git a/hacks/hypercube.c b/hacks/hypercube.c index 0055696..fe9e177 100644 --- a/hacks/hypercube.c +++ b/hacks/hypercube.c @@ -564,6 +564,12 @@ static const struct line_info line_table[LINE_COUNT] = static void hypercube_free (Display *dpy, Window window, void *closure) { + struct hyper_state *hs = (struct hyper_state *) closure; + int i; + XFreeGC (dpy, hs->black_gc); + for (i = 0; i < 8; i++) + if (hs->hs_color_gcs[i]) XFreeGC (dpy, hs->hs_color_gcs[i]); + free (hs); } XSCREENSAVER_MODULE ("HyperCube", hypercube) -- cgit v1.2.3-55-g7522