summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2012-07-21 17:51:55 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2012-07-22 13:36:05 (GMT)
commit7a3ecf5ed5eb12d39f4fb14c821efda0b6a64031 (patch)
treeb5a211784a8ece7bc587817e2e38f193634db209
parent9f7dc8391746f41b12b90625ad7aa364d2091ebf (diff)
downloadCMake-7a3ecf5ed5eb12d39f4fb14c821efda0b6a64031.zip
CMake-7a3ecf5ed5eb12d39f4fb14c821efda0b6a64031.tar.gz
CMake-7a3ecf5ed5eb12d39f4fb14c821efda0b6a64031.tar.bz2
Fix memory leak in Makefile generator.
This was introduced by 5d885db416a.
-rw-r--r--Source/cmMakefileUtilityTargetGenerator.cxx7
-rw-r--r--Source/cmMakefileUtilityTargetGenerator.h7
2 files changed, 11 insertions, 3 deletions
diff --git a/Source/cmMakefileUtilityTargetGenerator.cxx b/Source/cmMakefileUtilityTargetGenerator.cxx
index e8afd45..4456aa7 100644
--- a/Source/cmMakefileUtilityTargetGenerator.cxx
+++ b/Source/cmMakefileUtilityTargetGenerator.cxx
@@ -33,6 +33,13 @@ cmMakefileUtilityTargetGenerator
}
//----------------------------------------------------------------------------
+cmMakefileUtilityTargetGenerator
+::~cmMakefileUtilityTargetGenerator()
+{
+ delete this->OSXBundleGenerator;
+}
+
+//----------------------------------------------------------------------------
void cmMakefileUtilityTargetGenerator::WriteRuleFiles()
{
this->CreateRuleFile();
diff --git a/Source/cmMakefileUtilityTargetGenerator.h b/Source/cmMakefileUtilityTargetGenerator.h
index 99c16fc..fc47b38 100644
--- a/Source/cmMakefileUtilityTargetGenerator.h
+++ b/Source/cmMakefileUtilityTargetGenerator.h
@@ -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:
};