From: eap Date: Fri, 14 Dec 2012 12:20:06 +0000 (+0000) Subject: 21948: EDF SMESH : Memory is not freed when deleting a mesh X-Git-Tag: B4NGCMakeInt~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a7cdf5426b2bdc6095108f053859656b4831e6fe;p=modules%2Fkernel.git 21948: EDF SMESH : Memory is not freed when deleting a mesh - aFO = _impl->GetOwner()->GetSObject(theFatherObject->GetID()); + CORBA::String_var fatherEntry = theFatherObject->GetID(); + aFO = _impl->GetOwner()->GetSObject( fatherEntry.in() ); --- diff --git a/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx b/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx index c6a323224..3220b2dd5 100644 --- a/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx +++ b/src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx @@ -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);