mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 01:40:34 +05:00
NPAL18620: Pb. of performances with MakeTranslation. Fixed memory loss in RemoveObject().
This commit is contained in:
parent
253e047bb1
commit
9ef81664c4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user