Fixed memory leak of maps.

This commit is contained in:
Ulysse Cura 2026-08-16 22:41:06 +02:00
parent 009d463a65
commit a8ca1d30fa
1 changed files with 2 additions and 0 deletions

View File

@ -201,6 +201,8 @@ void destroy_map(map_t *map)
if(map->backgroundlayer3) free(map->backgroundlayer3);
if(map->backgroundlayer2) free(map->backgroundlayer2);
if(map->backgroundlayer1) free(map->backgroundlayer1);
free(map);
}
int map_load_entities(map_t *map)