aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-16 19:28:18 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-16 19:28:18 +0100
commit7f3461875572335eedffa272226199dd1c2fc92a (patch)
treeab0a7ac913340dc09222cd49c72ead44ddc93fd4 /src/ft_exit.c
parentStill searching (diff)
download42-cub3d-7f3461875572335eedffa272226199dd1c2fc92a.tar.gz
42-cub3d-7f3461875572335eedffa272226199dd1c2fc92a.tar.bz2
42-cub3d-7f3461875572335eedffa272226199dd1c2fc92a.tar.xz
42-cub3d-7f3461875572335eedffa272226199dd1c2fc92a.tar.zst
42-cub3d-7f3461875572335eedffa272226199dd1c2fc92a.zip
Cleaner memdels
Diffstat (limited to '')
-rw-r--r--src/ft_exit.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 6b1fb5e..2e997fb 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -28,30 +28,30 @@ static void
i = 0;
while (i < 8)
{
- ft_memdel((void**)&clist->sprites[i]);
+ ft_memdel((void*)&clist->sprites[i]);
i++;
}
- ft_memdel((void**)&clist->sprites);
- ft_memdel((void**)&clist);
+ ft_memdel((void*)&clist->sprites);
+ ft_memdel((void*)&clist);
}
static void
ft_free_lists(t_cub *clist)
{
- ft_memdel((void**)&clist->mlist.filename);
- 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.nl_tex_path);
- ft_memdel((void**)&clist->mlist.fl_tex_path);
- ft_memdel((void**)&clist->mlist.ce_tex_path);
- ft_memdel((void**)&clist->mlist.nlevel_path);
- ft_memdel((void**)&clist->mlist.skybox_path);
- ft_memdel((void**)&clist->mlist.traps_path);
- ft_memdel((void**)&clist->mlist.music_path);
- ft_memdel((void**)&clist->mlist.music_cmd);
- ft_memdel((void**)&clist->mlist.mapl);
+ ft_memdel((void*)&clist->mlist.filename);
+ 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.nl_tex_path);
+ ft_memdel((void*)&clist->mlist.fl_tex_path);
+ ft_memdel((void*)&clist->mlist.ce_tex_path);
+ ft_memdel((void*)&clist->mlist.nlevel_path);
+ ft_memdel((void*)&clist->mlist.skybox_path);
+ ft_memdel((void*)&clist->mlist.traps_path);
+ ft_memdel((void*)&clist->mlist.music_path);
+ ft_memdel((void*)&clist->mlist.music_cmd);
+ ft_memdel((void*)&clist->mlist.mapl);
ft_free_words(clist->mlist.map);
ft_free_words(clist->mlist.mcmd_words);
ft_free_words(clist->sfx.death);
@@ -61,7 +61,7 @@ static void
ft_free_words(clist->sfx.trap);
ft_free_sprites(clist->mlist.sprite_path);
if (!clist->wlist.inited)
- ft_memdel((void**)&clist->wlist.winptr);
+ ft_memdel((void*)&clist->wlist.winptr);
}
static void