mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r26052) -Fix: missing virtual destructor could cause some memory to be not freed
This commit is contained in:
parent
8e27031492
commit
83a76c73c7
@ -100,7 +100,7 @@ struct CompanyProperties {
|
|||||||
|
|
||||||
CompanyProperties() : name(NULL), president_name(NULL) {}
|
CompanyProperties() : name(NULL), president_name(NULL) {}
|
||||||
|
|
||||||
~CompanyProperties()
|
virtual ~CompanyProperties()
|
||||||
{
|
{
|
||||||
free(this->name);
|
free(this->name);
|
||||||
free(this->president_name);
|
free(this->president_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user