X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImage.cxx;h=821de16ebb35c34067b2488ba93be5161ba9599f;hb=4c78eb9adeaad50d0885769f21fecdfd4804f0c0;hp=55a56ef2f3e75cd3351b28b3bd475f6afafbace0;hpb=ddd0fa980287258b869cf7c9835c4a559cd4cb72;p=clitk.git diff --git a/common/vvImage.cxx b/common/vvImage.cxx index 55a56ef..821de16 100644 --- a/common/vvImage.cxx +++ b/common/vvImage.cxx @@ -50,6 +50,7 @@ void vvImage::Init() //-------------------------------------------------------------------- vvImage::~vvImage() { + DD("vvImage got deleted!"); Reset(); } //-------------------------------------------------------------------- @@ -295,7 +296,7 @@ void vvImage::UpdateReslice() //-------------------------------------------------------------------- vtkImageData * CopyAndCastToFloatFrom(vtkImageData * input) { - vtkImageData * p = vtkImageData::New(); + vtkSmartPointer p = vtkSmartPointer::New(); p->SetExtent(input->GetExtent ()); // Only first ! could not be 4D p->SetScalarTypeToFloat(); p->AllocateScalars();