(svn r26052) -Fix: missing virtual destructor could cause some memory to be not freed
This commit is contained in:
		@@ -100,7 +100,7 @@ struct CompanyProperties {
 | 
			
		||||
 | 
			
		||||
	CompanyProperties() : name(NULL), president_name(NULL) {}
 | 
			
		||||
 | 
			
		||||
	~CompanyProperties()
 | 
			
		||||
	virtual ~CompanyProperties()
 | 
			
		||||
	{
 | 
			
		||||
		free(this->name);
 | 
			
		||||
		free(this->president_name);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user