From c251f8fc85401146de158adaefbf2d2a4a5d9777 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 18 Mar 2010 13:48:26 +0000 Subject: [PATCH] Mantis issue 0020768: Some Dump with RestoreSubShapes not loadable. Fix 1. --- src/GEOM_I/GEOM_Gen_i.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index 64c78fccb..cbc893579 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -792,7 +792,7 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreSubShapesO (SALOMEDS::Study_ptr theStudy, aParts = RestoreSubShapes(theStudy, theObject, aSO, theArgs, theFindMethod, theInheritFirstArg, theAddPrefix); - aSO->Destroy(); + if (!CORBA::is_nil(aSO)) aSO->Destroy(); return aParts._retn(); }