From a7cdf5426b2bdc6095108f053859656b4831e6fe Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 14 Dec 2012 12:20:06 +0000 Subject: [PATCH] 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() ); --- src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2