potential memory leak in vtkImageReslice
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The destructor of vtkImageReslice should decrease the reference count of its InformationInput.
$ vtk % vtkImageReslice reslice reslice % vtkImageData data data % data GetReferenceCount 1 % reslice SetInformationInput data % data GetReferenceCount 2 % reslice Delete % data GetReferenceCount 2
The last result should be 1. A fix is:
//---------------------------------------------------------------------------- vtkImageReslice::~vtkImageReslice() {
- this->SetInformationInput(NULL); this->SetResliceTransform(NULL); this->SetResliceAxes(NULL); if (this->IndexMatrix)