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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user