summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-09-14 20:26:56 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-09-14 20:26:56 (GMT)
commite197d3f219e80be8b3c6679dc7fd8a74d1772b52 (patch)
treec9b2b43551246a7d190bc90318cf8399765f474f /Source/cmakemain.cxx
parentdd533552bb2c53edc8cd6a5834ba1f46088408f2 (diff)
downloadCMake-e197d3f219e80be8b3c6679dc7fd8a74d1772b52.zip
CMake-e197d3f219e80be8b3c6679dc7fd8a74d1772b52.tar.gz
CMake-e197d3f219e80be8b3c6679dc7fd8a74d1772b52.tar.bz2
remove memory leaks
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index bcc250f..3df3d64 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -1,4 +1,5 @@
#include "cmake.h"
+#include "cmMakefileGenerator.h"
int main(int ac, char** av)
{
@@ -8,5 +9,7 @@ int main(int ac, char** av)
{
args.push_back(av[i]);
}
- return cm.Generate(args);
+ int ret = cm.Generate(args);
+ cmMakefileGenerator::UnRegisterGenerators();
+ return ret;
}