mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 15:10:20 -06:00
Fix memory leak of local generator detected by LeakSanitizer.
This commit is contained in:
@@ -1000,6 +1000,7 @@ bool cmQtAutoGenerators::Run(const std::string& targetDirectory,
|
||||
|
||||
this->WriteOldMocDefinitionsFile(targetDirectory);
|
||||
|
||||
delete gg->GetCurrentLocalGenerator();
|
||||
delete gg;
|
||||
gg = NULL;
|
||||
makefile = NULL;
|
||||
|
||||
Reference in New Issue
Block a user