From 905b855999905206f9c9aa7c1b029e242326a598 Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 30 Oct 2009 13:15:15 +0000 Subject: [PATCH] 0020564: EDF 1156 SMESH: SIGSEGV when closing Salome if a clipping plane was defined --- src/SMESHGUI/SMESHGUI_ClippingDlg.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx b/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx index 1364b265d..be11acf6c 100644 --- a/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ClippingDlg.cxx @@ -72,7 +72,7 @@ class OrientedPlane: public vtkPlane { - SVTK_ViewWindow* myViewWindow; + QPointer myViewWindow; vtkDataSetMapper* myMapper; @@ -168,7 +168,8 @@ protected: } ~OrientedPlane(){ - myViewWindow->RemoveActor(myActor); + if (myViewWindow) + myViewWindow->RemoveActor(myActor); myActor->Delete(); myMapper->RemoveAllInputs(); -- 2.30.2