Fix of IPAL19448 (Qt4 porting: application hungs up at several Import MED file cycles).

This commit is contained in:
akl 2008-04-08 10:40:18 +00:00
parent 61225638d0
commit 119fd18e76
2 changed files with 4 additions and 2 deletions

View File

@ -80,8 +80,9 @@ SMESH_GroupOnGeom_i::SMESH_GroupOnGeom_i( PortableServer::POA_ptr thePOA, SMESH_
SMESH_GroupBase_i::~SMESH_GroupBase_i() SMESH_GroupBase_i::~SMESH_GroupBase_i()
{ {
MESSAGE("~SMESH_GroupBase_i; this = "<<this ); MESSAGE("~SMESH_GroupBase_i; this = "<<this );
if ( myMeshServant ) // akl: removeGroup() is called from SMESH_Mesh_i() destructor
myMeshServant->removeGroup(myLocalID); // if ( myMeshServant )
// myMeshServant->removeGroup(myLocalID);
} }
//======================================================================= //=======================================================================

View File

@ -121,6 +121,7 @@ SMESH_Mesh_i::~SMESH_Mesh_i()
// this method is colled from destructor of group (PAL6331) // this method is colled from destructor of group (PAL6331)
//_impl->RemoveGroup( aGroup->GetLocalID() ); //_impl->RemoveGroup( aGroup->GetLocalID() );
removeGroup( aGroup->GetLocalID() );
aGroup->Destroy(); aGroup->Destroy();
} }
} }