aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_del_tex.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-22 23:42:05 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-22 23:42:05 +0100
commit1e84a8792302f0446e8eb838f478b4a6564d1011 (patch)
tree1968ab8d402596dc710afa4cf70335687e64637b /src/ft_del_tex.c
parentCleaner (diff)
download42-cub3d-1e84a8792302f0446e8eb838f478b4a6564d1011.tar.gz
42-cub3d-1e84a8792302f0446e8eb838f478b4a6564d1011.tar.bz2
42-cub3d-1e84a8792302f0446e8eb838f478b4a6564d1011.tar.xz
42-cub3d-1e84a8792302f0446e8eb838f478b4a6564d1011.tar.zst
42-cub3d-1e84a8792302f0446e8eb838f478b4a6564d1011.zip
I think we good
Diffstat (limited to 'src/ft_del_tex.c')
-rw-r--r--src/ft_del_tex.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ft_del_tex.c b/src/ft_del_tex.c
index 55eff72..07265fa 100644
--- a/src/ft_del_tex.c
+++ b/src/ft_del_tex.c
@@ -77,6 +77,10 @@ static void
mlx_destroy_image(cl->wlist.wlx, cl->tlist[19].img);
if (cl->tlist[20].img)
mlx_destroy_image(cl->wlist.wlx, cl->tlist[20].img);
+ if (cl->tlist[21].img)
+ mlx_destroy_image(cl->wlist.wlx, cl->tlist[21].img);
+ if (cl->tlist[22].img)
+ mlx_destroy_image(cl->wlist.wlx, cl->tlist[22].img);
}
void