[haiku-commits] r42974 - haiku/trunk/src/servers/mail

  • From: revol@xxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 29 Oct 2011 20:47:21 +0200 (CEST)

Author: mmu_man
Date: 2011-10-29 20:47:21 +0200 (Sat, 29 Oct 2011)
New Revision: 42974
Changeset: https://dev.haiku-os.org/changeset/42974

Modified:
   haiku/trunk/src/servers/mail/MailDaemon.cpp
Log:
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().


Modified: haiku/trunk/src/servers/mail/MailDaemon.cpp
===================================================================
--- haiku/trunk/src/servers/mail/MailDaemon.cpp 2011-10-29 17:38:58 UTC (rev 
42973)
+++ haiku/trunk/src/servers/mail/MailDaemon.cpp 2011-10-29 18:47:21 UTC (rev 
42974)
@@ -725,6 +725,7 @@
        delete it->second.outboundProtocol;
        unload_add_on(it->second.inboundImage);
        unload_add_on(it->second.outboundImage);
+       fAccounts.erase(it->first);
 }
 
 


Other related posts:

  • » [haiku-commits] r42974 - haiku/trunk/src/servers/mail - revol