From 9ef81664c4e86f83d87738cd6a940a612ecb8642 Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 24 Mar 2008 08:14:56 +0000 Subject: [PATCH] NPAL18620: Pb. of performances with MakeTranslation. Fixed memory loss in RemoveObject(). --- src/GEOM_I/GEOM_Gen_i.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index 106ee9ef6..b41b07f8b 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -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; -- 2.39.2