forked from github/server
memory leak: building_type::construction was never released
This commit is contained in:
parent
1f1850dafc
commit
d264c454b8
|
@ -94,6 +94,7 @@ void bt_register(building_type * type)
|
||||||
|
|
||||||
void free_buildingtype(void *ptr) {
|
void free_buildingtype(void *ptr) {
|
||||||
building_type *btype = (building_type *)ptr;
|
building_type *btype = (building_type *)ptr;
|
||||||
|
free(btype->construction);
|
||||||
free(btype->_name);
|
free(btype->_name);
|
||||||
free(btype);
|
free(btype);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue