From e57a982136f654e21607ce8db0d890dfd65a0878 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 29 Nov 2001 15:14:07 -0500 Subject: [PATCH] ENH: fix memory leaks --- Source/MFCDialog/CMakeSetup.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/MFCDialog/CMakeSetup.cpp b/Source/MFCDialog/CMakeSetup.cpp index c97ca0fec..6cf1bc15d 100644 --- a/Source/MFCDialog/CMakeSetup.cpp +++ b/Source/MFCDialog/CMakeSetup.cpp @@ -5,6 +5,8 @@ #include "CMakeSetup.h" #include "CMakeSetupDialog.h" #include "CMakeCommandLineInfo.h" +#include "../cmListFileCache.h" +#include "../cmMakefileGenerator.h" #ifdef _DEBUG #define new DEBUG_NEW @@ -73,6 +75,9 @@ BOOL CMakeSetup::InitInstance() // dismissed with Cancel } + // clean up globals + cmListFileCache::GetInstance()->ClearCache(); + cmMakefileGenerator::UnRegisterGenerators(); // Since the dialog has been closed, return FALSE so that we exit the // application, rather than start the application's message pump. return FALSE;