Fix memory leak in Makefile generator.

This was introduced by 5d885db416.
This commit is contained in:
Nicolas Despres 2012-07-21 19:51:55 +02:00 committed by Peter Kümmel
parent 9f7dc83917
commit 7a3ecf5ed5
2 changed files with 11 additions and 3 deletions

View File

@ -32,6 +32,13 @@ cmMakefileUtilityTargetGenerator
this->OSXBundleGenerator->GetMacContentDirectory();
}
//----------------------------------------------------------------------------
cmMakefileUtilityTargetGenerator
::~cmMakefileUtilityTargetGenerator()
{
delete this->OSXBundleGenerator;
}
//----------------------------------------------------------------------------
void cmMakefileUtilityTargetGenerator::WriteRuleFiles()
{

View File

@ -14,16 +14,17 @@
#include "cmMakefileTargetGenerator.h"
class cmMakefileUtilityTargetGenerator:
class cmMakefileUtilityTargetGenerator:
public cmMakefileTargetGenerator
{
public:
cmMakefileUtilityTargetGenerator(cmTarget* target);
virtual ~cmMakefileUtilityTargetGenerator();
/* the main entry point for this class. Writes the Makefiles associated
with this target */
virtual void WriteRuleFiles();
virtual void WriteRuleFiles();
protected:
};