diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-21 21:48:21 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-21 21:48:21 +0100 |
commit | dd9ad2eb8384f7dc2f66f0c6c14f033e6fec56b0 (patch) | |
tree | 086f81c4486d44c811c971f598463c1e37ea546a /src/ft_exit.c | |
parent | Fix (diff) | |
download | 42-cub3d-dd9ad2eb8384f7dc2f66f0c6c14f033e6fec56b0.tar.gz 42-cub3d-dd9ad2eb8384f7dc2f66f0c6c14f033e6fec56b0.tar.bz2 42-cub3d-dd9ad2eb8384f7dc2f66f0c6c14f033e6fec56b0.tar.xz 42-cub3d-dd9ad2eb8384f7dc2f66f0c6c14f033e6fec56b0.tar.zst 42-cub3d-dd9ad2eb8384f7dc2f66f0c6c14f033e6fec56b0.zip |
fixed most valgrind bullshit
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r-- | src/ft_exit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index e2a8676..4c89bc6 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -44,6 +44,11 @@ static void i++; } ft_memdel((void*)&clist->sprites); + if (!clist->wlist.inited) + { + ft_memdel((void*)&clist->wlist.winptr); + ft_memdel((void*)&clist->wlist.wlx); + } ft_memdel((void*)&clist); } @@ -77,8 +82,6 @@ static void while (++i < 2) ft_memdel((void*)&clist->weaps[i]); ft_memdel((void*)&clist->weaps); - if (!clist->wlist.inited) - ft_memdel((void*)&clist->wlist.winptr); } static void |