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/deluxe.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/deluxe.c')
-rw-r--r-- | hacks/deluxe.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hacks/deluxe.c b/hacks/deluxe.c index 694a982..5fd7eb7 100644 --- a/hacks/deluxe.c +++ b/hacks/deluxe.c @@ -423,6 +423,20 @@ deluxe_event (Display *dpy, Window window, void *closure, XEvent *event) static void deluxe_free (Display *dpy, Window window, void *closure) { + struct state *st = (struct state *) closure; + int i; + XFreeGC (dpy, st->erase_gc); + if (st->ba) XFreePixmap (dpy, st->ba); + if (st->bb) XFreePixmap (dpy, st->bb); + if (st->plane_masks) free (st->plane_masks); + for (i = 0; i < st->count; i++) + if (st->throbbers[i]) { + XFreeGC (dpy, st->throbbers[i]->gc); + free (st->throbbers[i]); + } + free (st->throbbers); + free (st->colors); + free (st); } |