Commit 4eb4a238 authored by David Gobbi's avatar David Gobbi Committed by Code Review
Browse files

Merge topic 'ccs-edge-locator-free' into master

9b46579d Perform explicit list deletion in CCSEdgeLocator.
parents 2b64cfa3 9b46579d
......@@ -196,7 +196,7 @@ public:
vtkCCSEdgeLocatorNode() :
ptId0(-1), ptId1(-1), edgeId(-1), next(0) {};
~vtkCCSEdgeLocatorNode() {
void FreeList() {
vtkCCSEdgeLocatorNode *ptr = this->next;
while (ptr)
{
......@@ -225,6 +225,7 @@ public:
return new vtkCCSEdgeLocator; };
void Delete() {
this->Initialize();
delete this; };
// Description:
......@@ -241,6 +242,12 @@ public:
void vtkCCSEdgeLocator::Initialize()
{
for (MapType::iterator i = this->EdgeMap.begin();
i != this->EdgeMap.end();
++i)
{
i->second.FreeList();
}
this->EdgeMap.clear();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment