From e9e53773c9cbe9d42abedffba86e307fb046f089 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 29 Oct 2011 18:47:21 +0000 Subject: [PATCH] Erase the removed account from the accounts map. This avoids a crash when an account was removed when we shutdown the daemon, due to double free(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42974 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/mail/MailDaemon.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/servers/mail/MailDaemon.cpp b/src/servers/mail/MailDaemon.cpp index d0c4567109..d1d3537415 100644 --- a/src/servers/mail/MailDaemon.cpp +++ b/src/servers/mail/MailDaemon.cpp @@ -725,6 +725,7 @@ MailDaemonApp::_RemoveAccount(AccountMap::const_iterator it) delete it->second.outboundProtocol; unload_add_on(it->second.inboundImage); unload_add_on(it->second.outboundImage); + fAccounts.erase(it->first); }