if (bbGetInputIn()!=NULL)
{
- if (gaussiansmooth==NULL) { gaussiansmooth=vtkImageGaussianSmooth::New(); }
+ if (gaussiansmooth!=NULL)
+ {
+ gaussiansmooth->Delete();
+ gaussiansmooth = NULL;
+ }
+ gaussiansmooth=vtkImageGaussianSmooth::New();
gaussiansmooth->SetInputData( bbGetInputIn() );
gaussiansmooth->SetStandardDeviation( bbGetInputStdDevX() , bbGetInputStdDevY() , bbGetInputStdDevZ() );
gaussiansmooth->Modified();