diff options
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(); } |