29 lines
1.1 KiB
C
29 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* map.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/05/16 14:50:15 by cchauvet #+# #+# */
|
|
/* Updated: 2023/05/16 14:50:16 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "map.h"
|
|
#include "./parsing_private.h"
|
|
|
|
void map_freer(t_map *map)
|
|
{
|
|
size_t i;
|
|
|
|
ft_freer_tab_ultimate(1, map->map);
|
|
i = 0;
|
|
while (i < 4)
|
|
{
|
|
if (map->img_path[i] != NULL)
|
|
free(map->img_path[i]);
|
|
i++;
|
|
}
|
|
}
|