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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user