aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 19:42:05 +0100
committerRudy Bousset <rbousset@z3r8p1.le-101.fr>2020-02-13 19:42:05 +0100
commite29dd2fa3688e1e96a25af3b651da574af08aa90 (patch)
treecb6486fc91f1b93e61e4dcda25d359095e6aa108 /src/ft_exit.c
parentBetter code structure (diff)
download42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.gz
42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.bz2
42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.xz
42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.tar.zst
42-cub3d-e29dd2fa3688e1e96a25af3b651da574af08aa90.zip
Splited structs
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r--src/ft_exit.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 5e7cd3f..8ada2e4 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -21,13 +21,14 @@
static void
ft_free_lists(t_cub *clist)
{
- ft_memdel((void**)&clist->no_tex_path);
- ft_memdel((void**)&clist->so_tex_path);
- ft_memdel((void**)&clist->ea_tex_path);
- ft_memdel((void**)&clist->we_tex_path);
- ft_memdel((void**)&clist->sprite_path);
- ft_memdel((void**)&clist->mapl);
- ft_free_words(clist->map);
+ ft_memdel((void**)&clist->mlist->no_tex_path);
+ ft_memdel((void**)&clist->mlist->so_tex_path);
+ ft_memdel((void**)&clist->mlist->ea_tex_path);
+ ft_memdel((void**)&clist->mlist->we_tex_path);
+ ft_memdel((void**)&clist->mlist->sprite_path);
+ ft_memdel((void**)&clist->mlist->mapl);
+ ft_free_words(clist->mlist->map);
+ ft_memdel((void**)&clist->mlist);
ft_memdel((void**)&clist->plist);
if (!clist->wlist->inited)
ft_memdel((void**)&clist->wlist->winptr);