memory leak: free building maintenance data

This commit is contained in:
Enno Rehling 2015-10-14 12:13:05 +02:00
parent 1fc5273f63
commit 2c659c1f47

View file

@ -95,6 +95,7 @@ void bt_register(building_type * type)
void free_buildingtype(void *ptr) {
building_type *btype = (building_type *)ptr;
free_construction(btype->construction);
free_construction(btype->maintenance);
free(btype->_name);
free(btype);
}