diff options
author | Simon Rettberg | 2019-02-18 11:55:58 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-02-18 11:55:58 +0100 |
commit | aa7530630e595b80d5db54655fd827b61edc0fd7 (patch) | |
tree | 048cb74072450c7592f254c3537ac8f252d09d73 /hacks/hypercube.c | |
parent | Forgot one DPMS killing instance (diff) | |
parent | Update to 5.42 (diff) | |
download | xscreensaver-aa7530630e595b80d5db54655fd827b61edc0fd7.tar.gz xscreensaver-aa7530630e595b80d5db54655fd827b61edc0fd7.tar.xz xscreensaver-aa7530630e595b80d5db54655fd827b61edc0fd7.zip |
Merge branch 'master' into openslxv23
Diffstat (limited to 'hacks/hypercube.c')
-rw-r--r-- | hacks/hypercube.c | 6 |
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) |