aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 17:45:53 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 17:45:53 +0100
commitded508c2018294c3bcb79b82dcf6874e12569b97 (patch)
tree10d2a086cdcacf35a8560eae6ac046302ace66d1 /src/ft_exit.c
parentMinimap back (diff)
download42-cub3d-ded508c2018294c3bcb79b82dcf6874e12569b97.tar.gz
42-cub3d-ded508c2018294c3bcb79b82dcf6874e12569b97.tar.bz2
42-cub3d-ded508c2018294c3bcb79b82dcf6874e12569b97.tar.xz
42-cub3d-ded508c2018294c3bcb79b82dcf6874e12569b97.tar.zst
42-cub3d-ded508c2018294c3bcb79b82dcf6874e12569b97.zip
Removed bloat
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r--src/ft_exit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 61f925e..78b6d0a 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -84,6 +84,8 @@ static void
mlx_destroy_image(clist->wlist.wlx, clist->tlist[7].img);
if (clist->mlist.istraps && clist->tlist[15].img)
mlx_destroy_image(clist->wlist.wlx, clist->tlist[15].img);
+ if (clist->tlist[16].img)
+ mlx_destroy_image(clist->wlist.wlx, clist->tlist[16].img);
ft_del_extra_sprites(clist);
}