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

Fix memory leak in Makefile generator.

This was introduced by 5d885db4.
parent 9f7dc839
...@@ -32,6 +32,13 @@ cmMakefileUtilityTargetGenerator ...@@ -32,6 +32,13 @@ cmMakefileUtilityTargetGenerator
this->OSXBundleGenerator->GetMacContentDirectory(); this->OSXBundleGenerator->GetMacContentDirectory();
} }
//----------------------------------------------------------------------------
cmMakefileUtilityTargetGenerator
::~cmMakefileUtilityTargetGenerator()
{
delete this->OSXBundleGenerator;
}
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void cmMakefileUtilityTargetGenerator::WriteRuleFiles() void cmMakefileUtilityTargetGenerator::WriteRuleFiles()
{ {
......
...@@ -14,16 +14,17 @@ ...@@ -14,16 +14,17 @@
#include "cmMakefileTargetGenerator.h" #include "cmMakefileTargetGenerator.h"
class cmMakefileUtilityTargetGenerator: class cmMakefileUtilityTargetGenerator:
public cmMakefileTargetGenerator public cmMakefileTargetGenerator
{ {
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 */
virtual void WriteRuleFiles(); virtual void WriteRuleFiles();
protected: protected:
}; };
......
Supports Markdown
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