/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_del_map.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: joelecle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:28:46 by joelecle #+# #+# */ /* Updated: 2020/02/14 17:28:46 by joelecle ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include #include 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->traps_path); ft_memdel((void*)&ml->music_path); ft_memdel((void*)&ml->music_cmd); ft_memdel((void*)&ml->mapl); ft_free_words(ml->map); ft_free_sprites_path(ml->sprite_path); }