Fix memory leak of local generator detected by LeakSanitizer.

This commit is contained in:
Bill Hoffman 2014-07-24 11:33:54 -04:00
parent afe21fc3c4
commit 0e88b1d6d9
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;