aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-29 15:42:37 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-29 15:42:37 +0200
commit76cefdc4dc3efa6eb410574a0f5ec42188ba11bd (patch)
tree755a05ecf1380be7e4011277e7aa657e9a76f6e6 /src/ft_exit.c
parentAwesome (diff)
download42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.gz
42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.bz2
42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.xz
42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.tar.zst
42-cub3d-76cefdc4dc3efa6eb410574a0f5ec42188ba11bd.zip
Almost
Diffstat (limited to '')
-rw-r--r--src/ft_exit.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index ed1191c..79b3068 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -21,6 +21,15 @@
static void
ft_del_last_remains(t_cub *clist)
{
+ uint16_t i;
+
+ i = 0;
+ while (i < clist->big_t_val)
+ {
+ ft_memdel((void*)&clist->big_t[i]);
+ i++;
+ }
+ ft_memdel((void*)&clist->big_t);
if (!clist->wlist.inited)
{
ft_memdel((void*)&clist->wlist.winptr);