diff options
author | Simon Rettberg | 2019-02-18 11:55:41 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-02-18 11:55:41 +0100 |
commit | ae69a754244c4e475c8d2591772ca8e005071d83 (patch) | |
tree | 58b3fa7abc2dcfe3c23e1c0ce108950c720826ab /hacks/critical.c | |
parent | Update gitignore (diff) | |
download | xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.gz xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.tar.xz xscreensaver-ae69a754244c4e475c8d2591772ca8e005071d83.zip |
Update to 5.42
Diffstat (limited to 'hacks/critical.c')
-rw-r--r-- | hacks/critical.c | 9 |
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); } |