summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-26 17:52:12 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-09-26 17:52:12 (GMT)
commit85896b3460f3e1276dec6ad67d63df26e65d16e2 (patch)
treeac69a3a0ae57c0edc6524f4c3d378efffb35e503
parent1bd6766643ee452d10380c2cbeaa817dedd7d6d5 (diff)
downloadCMake-85896b3460f3e1276dec6ad67d63df26e65d16e2.zip
CMake-85896b3460f3e1276dec6ad67d63df26e65d16e2.tar.gz
CMake-85896b3460f3e1276dec6ad67d63df26e65d16e2.tar.bz2
minor memory fix
-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