From: jfa Date: Wed, 18 Jan 2006 09:34:12 +0000 (+0000) Subject: PAL11211: SIGSGV when exporting a mesh after having deleted a group. X-Git-Tag: T_Before_Join_BR-D5-38-2003 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FOCC_visual_parameters_2006;p=modules%2Fsmesh.git PAL11211: SIGSGV when exporting a mesh after having deleted a group. --- diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index ffd77cd55..a4b5f80af 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -1069,8 +1069,8 @@ void SMESH_Mesh::RemoveGroup (const int theGroupID) if (_mapGroup.find(theGroupID) == _mapGroup.end()) return; GetMeshDS()->RemoveGroup( _mapGroup[theGroupID]->GetGroupDS() ); - _mapGroup.erase (theGroupID); delete _mapGroup[theGroupID]; + _mapGroup.erase (theGroupID); } //=============================================================================