memory leak: building_type::construction was never released

This commit is contained in:
Enno Rehling 2015-10-13 22:13:50 +02:00
parent 1f1850dafc
commit d264c454b8
1 changed files with 1 additions and 0 deletions

View File

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