mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 15:00:34 +05:00
0020564: EDF 1156 SMESH: SIGSEGV when closing Salome if a clipping plane was defined
This commit is contained in:
parent
ad1014d43c
commit
905b855999
@ -72,7 +72,7 @@
|
||||
|
||||
class OrientedPlane: public vtkPlane
|
||||
{
|
||||
SVTK_ViewWindow* myViewWindow;
|
||||
QPointer<SVTK_ViewWindow> myViewWindow;
|
||||
|
||||
vtkDataSetMapper* myMapper;
|
||||
|
||||
@ -168,7 +168,8 @@ protected:
|
||||
}
|
||||
|
||||
~OrientedPlane(){
|
||||
myViewWindow->RemoveActor(myActor);
|
||||
if (myViewWindow)
|
||||
myViewWindow->RemoveActor(myActor);
|
||||
myActor->Delete();
|
||||
|
||||
myMapper->RemoveAllInputs();
|
||||
|
Loading…
Reference in New Issue
Block a user