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/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=c453758762f60d28726000f77fb1bd1fafd47ecc;hp=249aa0a1083f61340a89683850a76722fd58e0bb 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); } //=============================================================================