summaryrefslogtreecommitdiffstats
path: root/hacks/shadebobs.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/shadebobs.c')
-rw-r--r--hacks/shadebobs.c4
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);
}