With this bug may amuled and webserver of amule crash with obscure log. I find it in imule and see that there is it in amule-2.3.1 also. Reproducible: Couldn't Reproduce That patch corect it and place of bug. [code] diff --git a/src/amuled.cpp b/src/amuled.cpp index c34a672..1e2f93a 100644 --- a/src/amuled.cpp +++ b/src/amuled.cpp @@ -368,6 +368,7 @@ void CDaemonAppTraits::DeletePending() while ( !m_sched_delete.empty() ) { std::list<wxObject *>::iterator i = m_sched_delete.begin(); wxObject *object = *i; + m_sched_delete.erase(i); delete object; } //m_sched_delete.erase(m_sched_delete.begin(), m_sched_delete.end()); diff --git a/src/webserver/src/WebInterface.cpp b/src/webserver/src/WebInterface.cpp index fe21088..7287ace 100644 --- a/src/webserver/src/WebInterface.cpp +++ b/src/webserver/src/WebInterface.cpp @@ -351,6 +351,7 @@ void CWebserverAppTraits::DeletePending() while (!m_sched_delete.empty()) { std::list<wxObject *>::iterator i = m_sched_delete.begin(); wxObject *object = *i; + m_sched_delete.erase(i); delete object; } } [/code]