summaryrefslogtreecommitdiffstats
path: root/hacks/hyperball.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-02-18 11:55:58 +0100
committerSimon Rettberg2019-02-18 11:55:58 +0100
commitaa7530630e595b80d5db54655fd827b61edc0fd7 (patch)
tree048cb74072450c7592f254c3537ac8f252d09d73 /hacks/hyperball.c
parentForgot one DPMS killing instance (diff)
parentUpdate to 5.42 (diff)
downloadxscreensaver-aa7530630e595b80d5db54655fd827b61edc0fd7.tar.gz
xscreensaver-aa7530630e595b80d5db54655fd827b61edc0fd7.tar.xz
xscreensaver-aa7530630e595b80d5db54655fd827b61edc0fd7.zip
Merge branch 'master' into openslxv23
Diffstat (limited to 'hacks/hyperball.c')
-rw-r--r--hacks/hyperball.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hacks/hyperball.c b/hacks/hyperball.c
index cae6360..767f008 100644
--- a/hacks/hyperball.c
+++ b/hacks/hyperball.c
@@ -548,6 +548,11 @@ static void
hyperball_free (Display *dpy, Window window, void *closure)
{
struct hyper_state *hs = (struct hyper_state *) closure;
+ int i, j;
+ XFreeGC (dpy, hs->black_gc);
+ for (i = 0; i < 8; i++)
+ for (j = 0; j < 8; j++)
+ if (hs->hs_color_gcs[i][j]) XFreeGC (dpy, hs->hs_color_gcs[i][j]);
free (hs);
}