Skip to content
Snippets Groups Projects
Commit 53da5dfd authored by Mickael PHILIT's avatar Mickael PHILIT
Browse files

Memory leak in vtkRemoveDuplicatePolys.cpp, the variable "polyPoints"

parent 956bfc9e
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ int vtkRemoveDuplicatePolys::RequestData(vtkInformation* vtkNotUsed(request),
std::map<std::set<int>, vtkIdType>::iterator polyIter;
// Now copy the polys.
vtkIdList* polyPoints = vtkIdList::New();
vtkNew<vtkIdList> polyPoints;
const vtkIdType numberOfPolys = input->GetNumberOfPolys();
vtkIdType progressStep = numberOfPolys / 100;
if (progressStep == 0)
......@@ -129,8 +129,6 @@ int vtkRemoveDuplicatePolys::RequestData(vtkInformation* vtkNotUsed(request),
vtkDebugMacro(<< "vtkRemoveDuplicatePolys : " << ndup
<< " duplicate polys (multiple instances of a polygon) have been"
<< " removed." << endl);
polyPoints->Delete();
output->Squeeze();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment