summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/cmMakefile.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 1a79b97..9208d83 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -96,12 +96,12 @@ cmMakefile::~cmMakefile()
}
std::list<cmFunctionBlocker *>::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<std::string>& v) const