(svn r26052) -Fix: missing virtual destructor could cause some memory to be not freed

This commit is contained in:
rubidium 2013-11-22 21:44:51 +00:00
parent 8e27031492
commit 83a76c73c7

View File

@ -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);