Memory leaks in graphics\vtkdatasetsurfacefilter.cxx
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
A Leak was found:
vtkGraphics: File graphics\vtkdatasetsurfacefilter.cxx void vtkDataSetSurfaceFilter::InsertPolygonInHash(vtkIdType* ids, int numPts, vtkIdType sourceId) { ... // Memory leak !!! vtkIdType* tab = new vtkIdType[numPts];
...
if (match)
{
// We have a match.
quad->SourceId = -1;
// That is all we need to do. Hide any tri shared by two or more cells.
return; // without delete tab
}
}