]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix endless loop in destructor on Win32 platform
authorabd <abd@opencascade.com>
Fri, 30 Jan 2009 13:36:57 +0000 (13:36 +0000)
committerabd <abd@opencascade.com>
Fri, 30 Jan 2009 13:36:57 +0000 (13:36 +0000)
src/DF/DF_Attribute.cxx

index 64cd7de7b8530c8adfb96363b462c331edf1d557..976a36eea4bda318ed7c2d90cec8c207bdee9c4a 100644 (file)
@@ -41,7 +41,8 @@ DF_Attribute::~DF_Attribute()
     map<string, DF_Attribute*>::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;
        }        
     }
   }