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/slidescreen.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/slidescreen.c')
| -rw-r--r-- | hacks/slidescreen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hacks/slidescreen.c b/hacks/slidescreen.c index c5656f3..aaa4762 100644 --- a/hacks/slidescreen.c +++ b/hacks/slidescreen.c @@ -91,6 +91,8 @@ slidescreen_init (Display *dpy, Window window) XParseColor (st->dpy, xgwa.colormap, "black", &bgc); if (!XParseColor (st->dpy, xgwa.colormap, bgs, &bgc)) XParseColor (st->dpy, xgwa.colormap, "gray", &fgc); + if (fgs) free (fgs); + if (bgs) free (bgs); fg_ok = XAllocColor (st->dpy, xgwa.colormap, &fgc); bg_ok = XAllocColor (st->dpy, xgwa.colormap, &bgc); |
