2
0
mirror of https://github.com/boostorg/graph.git synced 2026-02-27 17:12:11 +00:00

fix a memory leak

[SVN r10698]
This commit is contained in:
Jeremy Siek
2001-07-24 18:16:22 +00:00
parent e415495f7a
commit 6f356bf76d

View File

@@ -1489,6 +1489,9 @@ namespace boost {
return *this;
}
inline void clear() {
for (typename StoredVertexList::iterator i = m_vertices.begin();
i != m_vertices.end(); ++i)
delete (stored_vertex*)*i;
m_vertices.clear();
m_edges.clear();
}