diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-10 10:48:58 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-10 10:48:58 +0100 |
commit | abd20a73b4733a1a8b845f6ff0817ed77e545173 (patch) | |
tree | 24e9630c1895c7ba17b0cff8b4061a0cab2cf46f /src/ft_exit.c | |
parent | ok now (diff) | |
download | 42-cub3d-abd20a73b4733a1a8b845f6ff0817ed77e545173.tar.gz 42-cub3d-abd20a73b4733a1a8b845f6ff0817ed77e545173.tar.bz2 42-cub3d-abd20a73b4733a1a8b845f6ff0817ed77e545173.tar.xz 42-cub3d-abd20a73b4733a1a8b845f6ff0817ed77e545173.tar.zst 42-cub3d-abd20a73b4733a1a8b845f6ff0817ed77e545173.zip |
Freed multiple leaks
Diffstat (limited to '')
-rw-r--r-- | src/ft_exit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index 97c9e02..fb6de09 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -57,6 +57,10 @@ static void mlx_destroy_image(clist->wlist.wlx, clist->tlist[4].img); if (clist->mlist.isnlvl && clist->tlist[5].img) mlx_destroy_image(clist->wlist.wlx, clist->tlist[5].img); + if (clist->mlist.isftex && clist->tlist[6].img) + 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); } int |