]> Creatis software - creaRigidRegistration.git/blobdiff - PackRecalage/src/bbPackRecalageReSlicerBox.cxx
avoid warning
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageReSlicerBox.cxx
index 71cb3fa379f950536b3dafd54d62b290137c3416..28a1d912aca2d7a9e73f41370ff3db0b7dbb1fb2 100644 (file)
@@ -9,7 +9,7 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ReSlicerBox,bbtk::AtomicBlackBox);
 void ReSlicerBox::Process()
 {
  
-       if(bbGetInputOrigin()[0] != NULL)
+       if(bbGetInputOrigin()[0])
        {
                image = vtkImageChangeInformation::New();
                image->SetInput( bbGetInputIn() );
@@ -65,8 +65,11 @@ void ReSlicerBox::bbUserFinalizeProcessing()
 //  THE FINALIZATION METHOD BODY : 
 //    Here does nothing  
 //    but this is where you should desallocate the internal/output pointers  
-//    if any   
-  
+//    if any 
+       image->Delete();
+       slicer->Delete();
+    imageResult->Delete();
 }
 }
-// EO namespace bbPackRecalage
\ No newline at end of file
+// EO namespace bbPackRecalage
+