summaryrefslogtreecommitdiffstats
path: root/hacks/critical.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/critical.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/critical.c')
-rw-r--r--hacks/critical.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/hacks/critical.c b/hacks/critical.c
index 81fd0c1..d716fc6 100644
--- a/hacks/critical.c
+++ b/hacks/critical.c
@@ -198,7 +198,7 @@ static void
setup_colormap (struct state *st, XColor **colors, int *n_colors)
{
Bool writable;
- char const * color_scheme;
+ char * color_scheme;
/* Make a colormap */
*n_colors = get_integer_resource (st->dpy, "ncolors", "Integer");
@@ -237,6 +237,7 @@ setup_colormap (struct state *st, XColor **colors, int *n_colors)
*colors, n_colors, True,
&writable, True);
}
+ if (color_scheme) free (color_scheme);
}
@@ -421,6 +422,12 @@ static void
critical_free (Display *dpy, Window window, void *closure)
{
struct state *st = (struct state *) closure;
+ XFreeGC (dpy, st->fgc);
+ XFreeGC (dpy, st->bgc);
+ free (st->model->cells);
+ free (st->model);
+ free (st->history);
+ free (st->d_colors);
free (st);
}