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/critical.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'hacks/critical.c') 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); } -- cgit v1.2.3-55-g7522