From: abd Date: Fri, 30 Jan 2009 13:36:57 +0000 (+0000) Subject: Fix endless loop in destructor on Win32 platform X-Git-Tag: V4_1_0_maintainance_FINAL~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ca7a3c08c5242bfef155b80a69d7ef2540f2fd30;p=modules%2Fkernel.git Fix endless loop in destructor on Win32 platform --- diff --git a/src/DF/DF_Attribute.cxx b/src/DF/DF_Attribute.cxx index 64cd7de7b..976a36eea 100644 --- a/src/DF/DF_Attribute.cxx +++ b/src/DF/DF_Attribute.cxx @@ -41,7 +41,8 @@ DF_Attribute::~DF_Attribute() map::iterator mi; for(mi =_node->_attributes.begin(); mi != _node->_attributes.end(); mi++) { if(mi->second == this) { - _node->_attributes.erase(mi); + _node->_attributes.erase(mi); + break; } } }