Mem leak in vtkAbstractMapper::SetClippingPlanes
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Another cleanup I've found and maybe resolved for the community is in \Common\vtkAbstractMapper.cxx
void vtkAbstractMapper::SetClippingPlanes(vtkPlanes *planes) { vtkPlane *plane; if (!planes) { return; }
int numPlanes = planes->GetNumberOfPlanes();
this->RemoveAllClippingPlanes(); for (int i=0; i<numPlanes && i<6; i++) { plane = planes->GetPlane(i); this->AddClippingPlane(plane); plane->Delete(); // <-- Added } }