From: bharath Date: Wed, 11 Aug 2010 19:54:20 +0000 (+0000) Subject: used vtksmartpointer for vtkimagedata X-Git-Tag: v1.2.0~438 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4c78eb9adeaad50d0885769f21fecdfd4804f0c0;p=clitk.git used vtksmartpointer for vtkimagedata --- 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();