<process><PRE>
SetFileName(bbGetInputIn().c_str());
- Update();
+ vtkParent::Update();
+ // We need to disconnect the output image from its source or the
+ // vtk object will not be deleted as it
+ // will be referenced by its output image
+ bbGetOutputOut()->SetSource(NULL);
</PRE></process>
-
-<serconstructor><PRE>
-std::cout << "$$$$$$ constructing $$$$$"<<std::endl;
-</PRE></serconstructor>
-<serdestructor><PRE>
-std::cout << "$$$$$$ deleting $$$$$"<<std::endl;
-</PRE></serdestructor>
</blackbox>