Skip to content
Snippets Groups Projects
Commit 56f2d27d authored by Mickael PHILIT's avatar Mickael PHILIT Committed by Mathieu Westphal (Kitware)
Browse files

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

(cherry picked from commit 53da5dfd)
parent 5d7af024
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