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
This commit is contained in:
François Revol 2011-10-29 18:47:21 +00:00
parent a9bd4e48eb
commit e9e53773c9

View File

@ -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);
}