summaryrefslogtreecommitdiffstats
path: root/hacks/pacman.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/pacman.c')
-rw-r--r--hacks/pacman.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hacks/pacman.c b/hacks/pacman.c
index f7282fd..6d2dd85 100644
--- a/hacks/pacman.c
+++ b/hacks/pacman.c
@@ -126,6 +126,8 @@ free_pacman (ModeInfo * mi)
pacmangamestruct * pp = &pacman_games[MI_SCREEN (mi)];
int dir, mouth, i, j, k;
+ if (pp->tiles) free (pp->tiles);
+
if (pp->ghosts != NULL) {
free (pp->ghosts);
pp->ghosts = (ghoststruct *) NULL;
@@ -1249,6 +1251,9 @@ load_pixmaps (Display ** dpy, Window window, pacmangamestruct ** ps)
pp->spritexs, pp->spriteys);
srcy += sw;
}
+ XFreeGC (*dpy, gc);
+ XFreePixmap (*dpy, sprites);
+ XFreePixmap (*dpy, sprites_mask);
}