diff options
author | rubidium <rubidium@openttd.org> | 2013-11-22 21:44:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-22 21:44:51 +0000 |
commit | 83a76c73c7b79650e46361f4576d7709c3a771b0 (patch) | |
tree | 9cc8ef1ca108703095255babd64622151247ac0c /src | |
parent | 8e27031492053621c4c9194cc6ba7b233c6c8b60 (diff) | |
download | openttd-83a76c73c7b79650e46361f4576d7709c3a771b0.tar.xz |
(svn r26052) -Fix: missing virtual destructor could cause some memory to be not freed
Diffstat (limited to 'src')
-rw-r--r-- | src/company_base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_base.h b/src/company_base.h index 6385d6049..f9dce59e7 100644 --- a/src/company_base.h +++ b/src/company_base.h @@ -100,7 +100,7 @@ struct CompanyProperties { CompanyProperties() : name(NULL), president_name(NULL) {} - ~CompanyProperties() + virtual ~CompanyProperties() { free(this->name); free(this->president_name); |