From 0e88b1d6d92b32b767dff33109855f079a272f00 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 24 Jul 2014 11:33:54 -0400 Subject: [PATCH] Fix memory leak of local generator detected by LeakSanitizer. --- Source/cmQtAutoGenerators.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index cc6932db6..d4d565c7b 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;