mirror of https://github.com/OpenTTD/OpenTTD
(svn r26052) -Fix: missing virtual destructor could cause some memory to be not freed
parent
8e27031492
commit
83a76c73c7
|
@ -100,7 +100,7 @@ struct CompanyProperties {
|
|||
|
||||
CompanyProperties() : name(NULL), president_name(NULL) {}
|
||||
|
||||
~CompanyProperties()
|
||||
virtual ~CompanyProperties()
|
||||
{
|
||||
free(this->name);
|
||||
free(this->president_name);
|
||||
|
|
Loading…
Reference in New Issue