42_cube3D/map/map.c
Camille Chauvet e500e3f440 fix: leak
2023-05-05 14:49:04 +00:00

17 lines
224 B
C

#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++;
}
}