Fix memory leak in Makefile generator.

This was introduced by 5d885db416a.
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(); this->OSXBundleGenerator->GetMacContentDirectory();
} }
//----------------------------------------------------------------------------
cmMakefileUtilityTargetGenerator
::~cmMakefileUtilityTargetGenerator()
{
delete this->OSXBundleGenerator;
}
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void cmMakefileUtilityTargetGenerator::WriteRuleFiles() void cmMakefileUtilityTargetGenerator::WriteRuleFiles()
{ {

View File

@ -19,6 +19,7 @@ class cmMakefileUtilityTargetGenerator:
{ {
public: public:
cmMakefileUtilityTargetGenerator(cmTarget* target); cmMakefileUtilityTargetGenerator(cmTarget* target);
virtual ~cmMakefileUtilityTargetGenerator();
/* the main entry point for this class. Writes the Makefiles associated /* the main entry point for this class. Writes the Makefiles associated
with this target */ with this target */