Commit 7a3ecf5e authored by Nicolas Despres's avatar Nicolas Despres Committed by Peter Kümmel

Fix memory leak in Makefile generator.

This was introduced by 5d885db4.
parent 9f7dc839
......@@ -32,6 +32,13 @@ cmMakefileUtilityTargetGenerator
this->OSXBundleGenerator->GetMacContentDirectory();
}
//----------------------------------------------------------------------------
cmMakefileUtilityTargetGenerator
::~cmMakefileUtilityTargetGenerator()
{
delete this->OSXBundleGenerator;
}
//----------------------------------------------------------------------------
void cmMakefileUtilityTargetGenerator::WriteRuleFiles()
{
......
......@@ -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:
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment