aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_warp_level.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 02:35:49 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 02:35:49 +0100
commit8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7 (patch)
tree026b97aaa56ac87328d1fa7332872e86b1b15d32 /src/ft_warp_level.c
parentAdded sound effects files (diff)
download42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.tar.gz
42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.tar.bz2
42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.tar.xz
42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.tar.zst
42-cub3d-8d68891b9e6089cd29095c94d0a30f2a3ec0a2c7.zip
Freed leaks
Diffstat (limited to 'src/ft_warp_level.c')
-rw-r--r--src/ft_warp_level.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c
index 7a04dc9..69b7b78 100644
--- a/src/ft_warp_level.c
+++ b/src/ft_warp_level.c
@@ -58,16 +58,14 @@ static void
cl->tlist[i].img = NULL;
}
if (cl->mlist.isnlvl && cl->tlist[5].img)
- {
mlx_destroy_image(cl->wlist.wlx, cl->tlist[5].img);
- cl->tlist[5].img = NULL;
- }
if (cl->mlist.isftex && cl->tlist[6].img)
mlx_destroy_image(cl->wlist.wlx, cl->tlist[6].img);
if (cl->mlist.isctex && cl->tlist[7].img)
mlx_destroy_image(cl->wlist.wlx, cl->tlist[7].img);
if (cl->mlist.istraps && cl->tlist[15].img)
mlx_destroy_image(cl->wlist.wlx, cl->tlist[15].img);
+ ft_del_extra_sprites(cl);
}
static void