From 85896b3460f3e1276dec6ad67d63df26e65d16e2 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 26 Sep 2002 13:52:12 -0400 Subject: [PATCH] minor memory fix --- Source/cmMakefile.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 1a79b9757..9208d83aa 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -96,12 +96,12 @@ cmMakefile::~cmMakefile() } std::list::iterator pos; for (pos = m_FunctionBlockers.begin(); - pos != m_FunctionBlockers.end(); pos = m_FunctionBlockers.begin()) + pos != m_FunctionBlockers.end(); ++pos) { cmFunctionBlocker* b = *pos; - m_FunctionBlockers.remove(*pos); delete b; } + m_FunctionBlockers.clear(); } void cmMakefile::PrintStringVector(const char* s, const std::vector& v) const