summaryrefslogtreecommitdiffstats
path: root/Source/MFCDialog/CMakeSetup.cpp
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-11-29 20:14:07 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-11-29 20:14:07 (GMT)
commite57a982136f654e21607ce8db0d890dfd65a0878 (patch)
tree7915c601926658d7f014eec9b0ade2411ea49b6a /Source/MFCDialog/CMakeSetup.cpp
parente8dade9420571737421bc127fed40541c3412ea3 (diff)
downloadCMake-e57a982136f654e21607ce8db0d890dfd65a0878.zip
CMake-e57a982136f654e21607ce8db0d890dfd65a0878.tar.gz
CMake-e57a982136f654e21607ce8db0d890dfd65a0878.tar.bz2
ENH: fix memory leaks
Diffstat (limited to 'Source/MFCDialog/CMakeSetup.cpp')
-rw-r--r--Source/MFCDialog/CMakeSetup.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/MFCDialog/CMakeSetup.cpp b/Source/MFCDialog/CMakeSetup.cpp
index c97ca0f..6cf1bc1 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;