aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 00:36:54 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 00:37:13 +0100
commit1bfb92324f267291f556cb464ea42a07d3c8224a (patch)
tree4d1b5c1b0d06340682f920e852681fa38c21e4ed /src/ft_raycasting.c
parentMerge branch 'floor-opti-smart' (diff)
download42-cub3d-1bfb92324f267291f556cb464ea42a07d3c8224a.tar.gz
42-cub3d-1bfb92324f267291f556cb464ea42a07d3c8224a.tar.bz2
42-cub3d-1bfb92324f267291f556cb464ea42a07d3c8224a.tar.xz
42-cub3d-1bfb92324f267291f556cb464ea42a07d3c8224a.tar.zst
42-cub3d-1bfb92324f267291f556cb464ea42a07d3c8224a.zip
Freed leaks
Diffstat (limited to 'src/ft_raycasting.c')
-rw-r--r--src/ft_raycasting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c
index 5c57044..221c43d 100644
--- a/src/ft_raycasting.c
+++ b/src/ft_raycasting.c
@@ -87,7 +87,6 @@ void
uint16_t i;
t_win *wl;
- ft_memdel((void**)&cl->rlist.wall_dist_tab);
wl = &cl->wlist;
if (!(cl->rlist.wall_dist_tab =
(float*)malloc(sizeof(float) * cl->wlist.x_size)))
@@ -107,5 +106,6 @@ void
}
ft_floor_cast(cl);
i = 0;
+ ft_memdel((void**)&cl->rlist.wall_dist_tab);
ft_memdel((void**)&cl->rlist.wall_bz);
}