]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
21948: EDF SMESH : Memory is not freed when deleting a mesh
authoreap <eap@opencascade.com>
Fri, 14 Dec 2012 12:20:06 +0000 (12:20 +0000)
committereap <eap@opencascade.com>
Fri, 14 Dec 2012 12:20:06 +0000 (12:20 +0000)
-  aFO = _impl->GetOwner()->GetSObject(theFatherObject->GetID());
+  CORBA::String_var fatherEntry = theFatherObject->GetID();
+  aFO = _impl->GetOwner()->GetSObject( fatherEntry.in() );

src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx

index c6a323224297c1e16ad89b67c11486845586ad55..3220b2dd5b7b185190b044d6c18e76cddd08f110 100644 (file)
@@ -148,7 +148,8 @@ SALOMEDS::SObject_ptr SALOMEDS_StudyBuilder_i::NewObjectToTag(SALOMEDS::SObject_
   SALOMEDS::Locker lock;
   CheckLocked();
   SALOMEDSImpl_SObject aFO, aSO;
-  aFO = _impl->GetOwner()->GetSObject(theFatherObject->GetID());
+  CORBA::String_var fatherEntry = theFatherObject->GetID();
+  aFO = _impl->GetOwner()->GetSObject( fatherEntry.in() );
   aSO = _impl->NewObjectToTag(aFO, atag);
   if(aSO.IsNull()) return SALOMEDS::SObject::_nil();
   SALOMEDS::SObject_var so = SALOMEDS_SObject_i::New (aSO, _orb);