summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-28 14:35:51 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-07-28 14:35:51 (GMT)
commitfd0229e8c5bffa4807962dbe4e077ae7ac2d3dda (patch)
tree311478cad9b28fead35418cc3a9d7c047dfd528e
parent68f4a0ee306e5b5aec1252d0e7ed2af93273ee9f (diff)
parent0e88b1d6d92b32b767dff33109855f079a272f00 (diff)
downloadCMake-fd0229e8c5bffa4807962dbe4e077ae7ac2d3dda.zip
CMake-fd0229e8c5bffa4807962dbe4e077ae7ac2d3dda.tar.gz
CMake-fd0229e8c5bffa4807962dbe4e077ae7ac2d3dda.tar.bz2
Merge topic 'fix_qt4_automoc_leak'
0e88b1d6 Fix memory leak of local generator detected by LeakSanitizer.
-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;