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/starfish.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/starfish.c')
-rw-r--r-- | hacks/starfish.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hacks/starfish.c b/hacks/starfish.c index 5e94144..a49b98f 100644 --- a/hacks/starfish.c +++ b/hacks/starfish.c @@ -458,6 +458,7 @@ starfish_init (Display *dpy, Window window) st->blob_p = !(random() % 3); else fprintf (stderr, "%s: mode must be blob, zoom, or random", progname); + if (s) free (s); if (st->blob_p) st->delay *= 3; @@ -520,6 +521,9 @@ static void starfish_free (Display *dpy, Window window, void *closure) { struct state *st = (struct state *) closure; + XFreeGC (dpy, st->gc); + free_starfish (st->starfish); + free (st->colors); free (st); } |