From 83a76c73c7b79650e46361f4576d7709c3a771b0 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 22 Nov 2013 21:44:51 +0000 Subject: (svn r26052) -Fix: missing virtual destructor could cause some memory to be not freed --- src/company_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2