summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-22 21:44:51 +0000
committerrubidium <rubidium@openttd.org>2013-11-22 21:44:51 +0000
commit83a76c73c7b79650e46361f4576d7709c3a771b0 (patch)
tree9cc8ef1ca108703095255babd64622151247ac0c
parent8e27031492053621c4c9194cc6ba7b233c6c8b60 (diff)
downloadopenttd-83a76c73c7b79650e46361f4576d7709c3a771b0.tar.xz
(svn r26052) -Fix: missing virtual destructor could cause some memory to be not freed
-rw-r--r--src/company_base.h2
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);