From ca7a3c08c5242bfef155b80a69d7ef2540f2fd30 Mon Sep 17 00:00:00 2001 From: abd Date: Fri, 30 Jan 2009 13:36:57 +0000 Subject: [PATCH] Fix endless loop in destructor on Win32 platform --- src/DF/DF_Attribute.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } } -- 2.39.2