aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 09:50:36 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 09:50:36 +0100
commitbfa1f4e6e61152ba3ff555d1508f43f0a5ab2754 (patch)
tree4eaa82a01e2e9ce65be74365233d8ec9fbcce253 /src/ft_exit.c
parentGood trap init (diff)
download42-cub3d-bfa1f4e6e61152ba3ff555d1508f43f0a5ab2754.tar.gz
42-cub3d-bfa1f4e6e61152ba3ff555d1508f43f0a5ab2754.tar.bz2
42-cub3d-bfa1f4e6e61152ba3ff555d1508f43f0a5ab2754.tar.xz
42-cub3d-bfa1f4e6e61152ba3ff555d1508f43f0a5ab2754.tar.zst
42-cub3d-bfa1f4e6e61152ba3ff555d1508f43f0a5ab2754.zip
Secured collision segv
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 3b00701..4125567 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -62,6 +62,8 @@ static void
mlx_destroy_image(clist->wlist.wlx, clist->tlist[6].img);
if (clist->mlist.isctex && clist->tlist[7].img)
mlx_destroy_image(clist->wlist.wlx, clist->tlist[7].img);
+ if (clist->mlist.istrap && clist->tlist[15].img)
+ mlx_destroy_image(clist->wlist.wlx, clist->tlist[15].img);
}
int