summaryrefslogtreecommitdiffstats
path: root/hacks/hypercube.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/hypercube.c
parentUpdate gitignore (diff)
downloadxscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.gz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.xz
xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.zip
Update to 5.42
Diffstat (limited to 'hacks/hypercube.c')
-rw-r--r--hacks/hypercube.c6
1 files changed, 6 insertions, 0 deletions
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)