aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_warp_level.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-07 13:58:21 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-07 13:58:21 +0200
commit9ec1dcddc92571ba7b65710f49ffc0d018c6db71 (patch)
treec4d3358e45b2d621a5e1e942291e41d17af9509f /src/ft_warp_level.c
parentBetter sound handling, few changes (diff)
download42-cub3d-9ec1dcddc92571ba7b65710f49ffc0d018c6db71.tar.gz
42-cub3d-9ec1dcddc92571ba7b65710f49ffc0d018c6db71.tar.bz2
42-cub3d-9ec1dcddc92571ba7b65710f49ffc0d018c6db71.tar.xz
42-cub3d-9ec1dcddc92571ba7b65710f49ffc0d018c6db71.tar.zst
42-cub3d-9ec1dcddc92571ba7b65710f49ffc0d018c6db71.zip
Freed big leaks
Diffstat (limited to 'src/ft_warp_level.c')
-rw-r--r--src/ft_warp_level.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c
index f9fac3e..bc56433 100644
--- a/src/ft_warp_level.c
+++ b/src/ft_warp_level.c
@@ -56,6 +56,7 @@ static int8_t
cl->c_rgb = ft_init_rgb();
cl->rlist = ft_init_s_ray();
ft_del_tex(cl);
+ cl->walltexgood = 0;
ft_del_map(&cl->mlist);
ft_del_sprites_lists(cl);
if (ft_init_sprites(&cl->sprites) < 0)
@@ -99,7 +100,6 @@ int8_t
char *tmp_mup;
uint8_t isoldmus;
- cl->walltexgood = 0;
if (!(next_path = (char *)malloc((ft_strlen(path) + 1) * sizeof(char))))
return (-1);
ft_sprintf(next_path, "%s", path);