]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
NPAL18620: Pb. of performances with MakeTranslation. Fixed memory loss in RemoveObject().
authorjfa <jfa@opencascade.com>
Mon, 24 Mar 2008 08:14:56 +0000 (08:14 +0000)
committerjfa <jfa@opencascade.com>
Mon, 24 Mar 2008 08:14:56 +0000 (08:14 +0000)
src/GEOM_I/GEOM_Gen_i.cc

index 106ee9ef66c6c80bba21633cf6ec80fbfe8231c5..b41b07f8b70b9c8f735c4739c5bb0b846c15aac2 100644 (file)
@@ -858,7 +858,8 @@ GEOM::GEOM_Object_ptr GEOM_Gen_i::AddSubShape (GEOM::GEOM_Object_ptr theMainShap
 //=============================================================================
 void GEOM_Gen_i::RemoveObject(GEOM::GEOM_Object_ptr theObject)
 {
-  Handle(GEOM_Object) anObject = _impl->GetObject(theObject->GetStudyID(), theObject->GetEntry());
+  CORBA::String_var anEntry = theObject->GetEntry();
+  Handle(GEOM_Object) anObject = _impl->GetObject(theObject->GetStudyID(), anEntry);
   if (anObject.IsNull()) return;
   _impl->RemoveObject(anObject);
   return;