Browse Source

Fix memory leak of local generator detected by LeakSanitizer.

Bill Hoffman 11 years ago
parent
commit
0e88b1d6d9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmQtAutoGenerators.cxx

+ 1 - 0
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;