diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-04 14:18:03 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-06-04 14:18:03 (GMT) |
commit | a3cfcd9894a5d626b8beba80fc8b5934ea3f46cf (patch) | |
tree | 73155ed903d3138946d64f4da4631954c8601b4e /Source/cmMSProjectGenerator.cxx | |
parent | abab6bc00069df6ff1988abced39b98ea199febc (diff) | |
download | CMake-a3cfcd9894a5d626b8beba80fc8b5934ea3f46cf.zip CMake-a3cfcd9894a5d626b8beba80fc8b5934ea3f46cf.tar.gz CMake-a3cfcd9894a5d626b8beba80fc8b5934ea3f46cf.tar.bz2 |
BUG: clean up memory leaks.
Diffstat (limited to 'Source/cmMSProjectGenerator.cxx')
-rw-r--r-- | Source/cmMSProjectGenerator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmMSProjectGenerator.cxx b/Source/cmMSProjectGenerator.cxx index 12e2733..7ac4106 100644 --- a/Source/cmMSProjectGenerator.cxx +++ b/Source/cmMSProjectGenerator.cxx @@ -54,11 +54,15 @@ void cmMSProjectGenerator::GenerateMakefile() { if(m_BuildDSW) { + delete m_DSWMakefile; + m_DSWMakefile = 0; m_DSWMakefile = new cmDSWMakefile(m_Makefile); m_DSWMakefile->OutputDSWFile(); } else { + delete m_DSPMakefile; + m_DSPMakefile = 0; m_DSPMakefile = new cmDSPMakefile(m_Makefile); m_DSPMakefile->OutputDSPFile(); } |