Salome HOME
PAL8310
[modules/smesh.git] / src / SMESH / SMESH_Mesh.cxx
index db8bc5f78301499b2ca2c044bd45a726364ea9c0..06dd09d73e758a8a6d9297986c2da72c0aae0d02 100644 (file)
@@ -992,8 +992,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);
 }
 
 //=============================================================================