[vtkusers] Cone6.cxx vtkBoxWidget memory leak
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon May 10 10:19:46 EDT 2004
Luca Picello wrote:
>
> Thank you Drew,
> you are right. Now the cone6 example runs without any problem.
Fixed in CVS, thanks.
> 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
> }
> }
Again you are right, I'll apply a slightly different patch though.
Thanks for bug report,
Mathieu
More information about the vtkusers
mailing list