diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-16 19:28:18 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-16 19:28:18 +0100 |
commit | 7f3461875572335eedffa272226199dd1c2fc92a (patch) | |
tree | ab0a7ac913340dc09222cd49c72ead44ddc93fd4 /src/ft_warp_level.c | |
parent | Still searching (diff) | |
download | 42-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 'src/ft_warp_level.c')
-rw-r--r-- | src/ft_warp_level.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c index 130b33a..bc903f0 100644 --- a/src/ft_warp_level.c +++ b/src/ft_warp_level.c @@ -23,20 +23,20 @@ static void ft_del_map(t_map *ml) { - ft_memdel((void**)&ml->filename); - ft_memdel((void**)&ml->no_tex_path); - ft_memdel((void**)&ml->so_tex_path); - ft_memdel((void**)&ml->ea_tex_path); - ft_memdel((void**)&ml->we_tex_path); - ft_memdel((void**)&ml->nl_tex_path); - ft_memdel((void**)&ml->fl_tex_path); - ft_memdel((void**)&ml->ce_tex_path); - ft_memdel((void**)&ml->nlevel_path); - ft_memdel((void**)&ml->skybox_path); - ft_memdel((void**)&ml->traps_path); - ft_memdel((void**)&ml->music_path); - ft_memdel((void**)&ml->music_cmd); - ft_memdel((void**)&ml->mapl); + ft_memdel((void*)&ml->filename); + ft_memdel((void*)&ml->no_tex_path); + ft_memdel((void*)&ml->so_tex_path); + ft_memdel((void*)&ml->ea_tex_path); + ft_memdel((void*)&ml->we_tex_path); + ft_memdel((void*)&ml->nl_tex_path); + ft_memdel((void*)&ml->fl_tex_path); + ft_memdel((void*)&ml->ce_tex_path); + ft_memdel((void*)&ml->nlevel_path); + ft_memdel((void*)&ml->skybox_path); + ft_memdel((void*)&ml->traps_path); + ft_memdel((void*)&ml->music_path); + ft_memdel((void*)&ml->music_cmd); + ft_memdel((void*)&ml->mapl); ft_free_sprites(ml->sprite_path); ft_free_words(ml->map); ft_free_words(ml->mcmd_words); @@ -65,8 +65,8 @@ static void ft_del_extra_sprites(cl); i = -1; while (++i < 8) - ft_memdel((void**)&cl->sprites[i]); - ft_memdel((void**)&cl->sprites); + ft_memdel((void*)&cl->sprites[i]); + ft_memdel((void*)&cl->sprites); } static void @@ -111,8 +111,8 @@ int8_t ft_parse_map(next_path, cl); ft_treat_music(isoldmus, tmp_mup, cl); if (isoldmus) - ft_memdel((void**)&tmp_mup); + ft_memdel((void*)&tmp_mup); ft_wall_tex_init(cl); - ft_memdel((void**)&next_path); + ft_memdel((void*)&next_path); return (0); } |