mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 09:20:35 +05:00
22874: [CEA 1425] Performance SMESH Module
Memory leak
This commit is contained in:
parent
c30422ed1f
commit
87de6c4044
@ -412,8 +412,9 @@ bool GEOM_Object_i::IsSame(GEOM::GEOM_BaseObject_ptr other)
|
|||||||
|
|
||||||
GEOM::GEOM_Object_var shapePtr = GEOM::GEOM_Object::_narrow( other );
|
GEOM::GEOM_Object_var shapePtr = GEOM::GEOM_Object::_narrow( other );
|
||||||
if ( !CORBA::is_nil( shapePtr ) ) {
|
if ( !CORBA::is_nil( shapePtr ) ) {
|
||||||
|
CORBA::String_var entry = shapePtr->GetEntry();
|
||||||
Handle(GEOM_Object) otherObject = Handle(GEOM_Object)::DownCast
|
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() ) {
|
if ( !otherObject.IsNull() ) {
|
||||||
TopoDS_Shape thisShape = _impl->GetValue();
|
TopoDS_Shape thisShape = _impl->GetValue();
|
||||||
TopoDS_Shape otherShape = otherObject->GetValue();
|
TopoDS_Shape otherShape = otherObject->GetValue();
|
||||||
|
Loading…
Reference in New Issue
Block a user