[vtkusers] calling destructors

Jothy jothybasu at gmail.com
Thu Aug 25 07:28:52 EDT 2011


Hi all,

This is  c++ question rather than a vtk one, sorry for that.

If I use

this->imageData=vtkSmartPointer<vtkImageData>::New();

Should I call

this-imageData->Delete() in the destructor of the class?

Thanks

Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110825/260e92cd/attachment.htm>


More information about the vtkusers mailing list