From: eap Date: Fri, 20 Feb 2015 11:43:53 +0000 (+0300) Subject: 22874: [CEA 1425] Performance SMESH Module X-Git-Tag: V7_6_0a1~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=87de6c404403676b23bd3d604579c7a12e32b27e;hp=c30422ed1f57ecae14a3351c2001f033e4ed312a;p=modules%2Fgeom.git 22874: [CEA 1425] Performance SMESH Module Memory leak --- diff --git a/src/GEOM_I/GEOM_Object_i.cc b/src/GEOM_I/GEOM_Object_i.cc index fd6e21e8a..f30746298 100644 --- a/src/GEOM_I/GEOM_Object_i.cc +++ b/src/GEOM_I/GEOM_Object_i.cc @@ -412,8 +412,9 @@ bool GEOM_Object_i::IsSame(GEOM::GEOM_BaseObject_ptr other) GEOM::GEOM_Object_var shapePtr = GEOM::GEOM_Object::_narrow( other ); if ( !CORBA::is_nil( shapePtr ) ) { + CORBA::String_var entry = shapePtr->GetEntry(); Handle(GEOM_Object) otherObject = Handle(GEOM_Object)::DownCast - ( GEOM_Engine::GetEngine()->GetObject( shapePtr->GetStudyID(), shapePtr->GetEntry(), false )); + ( GEOM_Engine::GetEngine()->GetObject( shapePtr->GetStudyID(), entry, false )); if ( !otherObject.IsNull() ) { TopoDS_Shape thisShape = _impl->GetValue(); TopoDS_Shape otherShape = otherObject->GetValue();