Merge topic 'fix_qt4_automoc_leak'

0e88b1d6 Fix memory leak of local generator detected by LeakSanitizer.
This commit is contained in:
Brad King 2014-07-28 10:35:51 -04:00 committed by CMake Topic Stage
commit fd0229e8c5
1 changed files with 1 additions and 0 deletions

View File

@ -1000,6 +1000,7 @@ bool cmQtAutoGenerators::Run(const std::string& targetDirectory,
this->WriteOldMocDefinitionsFile(targetDirectory);
delete gg->GetCurrentLocalGenerator();
delete gg;
gg = NULL;
makefile = NULL;