minor memory fix
This commit is contained in:
parent
1bd6766643
commit
85896b3460
@ -96,12 +96,12 @@ cmMakefile::~cmMakefile()
|
|||||||
}
|
}
|
||||||
std::list<cmFunctionBlocker *>::iterator pos;
|
std::list<cmFunctionBlocker *>::iterator pos;
|
||||||
for (pos = m_FunctionBlockers.begin();
|
for (pos = m_FunctionBlockers.begin();
|
||||||
pos != m_FunctionBlockers.end(); pos = m_FunctionBlockers.begin())
|
pos != m_FunctionBlockers.end(); ++pos)
|
||||||
{
|
{
|
||||||
cmFunctionBlocker* b = *pos;
|
cmFunctionBlocker* b = *pos;
|
||||||
m_FunctionBlockers.remove(*pos);
|
|
||||||
delete b;
|
delete b;
|
||||||
}
|
}
|
||||||
|
m_FunctionBlockers.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmMakefile::PrintStringVector(const char* s, const std::vector<std::string>& v) const
|
void cmMakefile::PrintStringVector(const char* s, const std::vector<std::string>& v) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user