From 4c78eb9adeaad50d0885769f21fecdfd4804f0c0 Mon Sep 17 00:00:00 2001 From: bharath Date: Wed, 11 Aug 2010 19:54:20 +0000 Subject: [PATCH] used vtksmartpointer for vtkimagedata --- common/vvImage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.47.1