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/shadebobs.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/shadebobs.c')
-rw-r--r-- | hacks/shadebobs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hacks/shadebobs.c b/hacks/shadebobs.c index 7a1a0ff..d796162 100644 --- a/hacks/shadebobs.c +++ b/hacks/shadebobs.c @@ -454,12 +454,14 @@ shadebobs_free (Display *dpy, Window window, void *closure) struct state *st = (struct state *) closure; free( st->anSinTable ); free( st->anCosTable ); - /* free( st->pImage->data ); */ + if (st->sColor) free (st->sColor); + XFreeGC (dpy, st->gc); XDestroyImage( st->pImage ); for( st->iShadeBob=0; st->iShadeBob<st->nShadeBobCount; st->iShadeBob++ ) free( st->aShadeBobs[ st->iShadeBob ].anDeltaMap ); free( st->aShadeBobs ); free( st->aiColorVals ); + free(st); } |