[Insight-users] ImageToVTKImageFilter memory leak ?

Diego diborg at gmail.com
Sat Jun 11 19:24:40 EDT 2005


Hi,

I think the class ImageToVTKImageFilter causes a memory leak at the
time it is destroyed.
The class destructor

template <class TInputImage>
ImageToVTKImageFilter<TInputImage>
::~ImageToVTKImageFilter()
{
}
is missing the line 

m_Importer->Delete() ;

for the private vtkImageImport * object.

- Diego


More information about the Insight-users mailing list