]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix SIGSEGV on dialog boxes closing
authorvsr <vsr@opencascade.com>
Tue, 22 Sep 2009 14:33:45 +0000 (14:33 +0000)
committervsr <vsr@opencascade.com>
Tue, 22 Sep 2009 14:33:45 +0000 (14:33 +0000)
src/GEOMBase/GEOMBase_Helper.cxx

index 1b8235f6ee8d3d4508ea17cee97e895453d2ea75..1bb44f33e9c84c0abf2519c32059519734eebcfc 100755 (executable)
@@ -106,7 +106,8 @@ GEOMBase_Helper::~GEOMBase_Helper()
   
   if (myDisplayer)
     delete myDisplayer;
-  myOperation->Destroy();
+  if ( !CORBA::is_nil( myOperation ) )
+    myOperation->Destroy();
 }
 
 //================================================================