summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGenerators.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2014-07-24 15:33:54 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2014-07-24 15:33:54 (GMT)
commit0e88b1d6d92b32b767dff33109855f079a272f00 (patch)
treefa622f8196ed3f84da3b72ac72a2b87df93fe4ae /Source/cmQtAutoGenerators.cxx
parentafe21fc3c43af0c031a77b3b48041d35f248f481 (diff)
downloadCMake-0e88b1d6d92b32b767dff33109855f079a272f00.zip
CMake-0e88b1d6d92b32b767dff33109855f079a272f00.tar.gz
CMake-0e88b1d6d92b32b767dff33109855f079a272f00.tar.bz2
Fix memory leak of local generator detected by LeakSanitizer.
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r--Source/cmQtAutoGenerators.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx
index cc6932d..d4d565c 100644
--- a/Source/cmQtAutoGenerators.cxx
+++ b/Source/cmQtAutoGenerators.cxx
@@ -1000,6 +1000,7 @@ bool cmQtAutoGenerators::Run(const std::string& targetDirectory,
this->WriteOldMocDefinitionsFile(targetDirectory);
+ delete gg->GetCurrentLocalGenerator();
delete gg;
gg = NULL;
makefile = NULL;