X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImage.cxx;h=821de16ebb35c34067b2488ba93be5161ba9599f;hb=4c78eb9adeaad50d0885769f21fecdfd4804f0c0;hp=4675cf5b661453428bd561d81bbc623c75be092c;hpb=ffa30ffca0e90ece637fadde1f3dd65166f20ab4;p=clitk.git diff --git a/common/vvImage.cxx b/common/vvImage.cxx index 4675cf5..821de16 100644 --- a/common/vvImage.cxx +++ b/common/vvImage.cxx @@ -296,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();