mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
leaks of CORBA objects
This commit is contained in:
parent
3e47e37091
commit
d95ba01c50
@ -248,7 +248,7 @@ void StdMeshersGUI_SubShapeSelectorWdg::SelectionIntoArgument()
|
||||
|
||||
GEOM::GEOM_Object_var aGeomObj = GetGeomObjectByEntry( IO->getEntry() );
|
||||
if ( !CORBA::is_nil( aGeomObj ) ) { // Selected Object From Study
|
||||
GEOM::GEOM_Object_ptr aGeomFatherObj = aGeomObj->GetMainShape();
|
||||
GEOM::GEOM_Object_var aGeomFatherObj = aGeomObj->GetMainShape();
|
||||
QString aFatherEntry = "";
|
||||
QString aMainFatherEntry = "";
|
||||
TopoDS_Shape shape;
|
||||
@ -256,7 +256,7 @@ void StdMeshersGUI_SubShapeSelectorWdg::SelectionIntoArgument()
|
||||
// Get Main Shape
|
||||
GEOM::GEOM_Object_var aGeomMain = GetGeomObjectByEntry( myEntry );
|
||||
if ( !CORBA::is_nil( aGeomMain ) && aGeomMain->GetType() == 37 ) { // Main Shape is a Group
|
||||
GEOM::GEOM_Object_ptr aMainFatherObj = aGeomMain->GetMainShape();
|
||||
GEOM::GEOM_Object_var aMainFatherObj = aGeomMain->GetMainShape();
|
||||
if ( !CORBA::is_nil( aMainFatherObj ) )
|
||||
aMainFatherEntry = aMainFatherObj->GetStudyEntry();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user