0020564: EDF 1156 SMESH: SIGSEGV when closing Salome if a clipping plane was defined

This commit is contained in:
dmv 2009-10-30 13:15:15 +00:00
parent ad1014d43c
commit 905b855999

View File

@ -72,7 +72,7 @@
class OrientedPlane: public vtkPlane class OrientedPlane: public vtkPlane
{ {
SVTK_ViewWindow* myViewWindow; QPointer<SVTK_ViewWindow> myViewWindow;
vtkDataSetMapper* myMapper; vtkDataSetMapper* myMapper;
@ -168,7 +168,8 @@ protected:
} }
~OrientedPlane(){ ~OrientedPlane(){
myViewWindow->RemoveActor(myActor); if (myViewWindow)
myViewWindow->RemoveActor(myActor);
myActor->Delete(); myActor->Delete();
myMapper->RemoveAllInputs(); myMapper->RemoveAllInputs();