mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-06 16:51:46 +00:00
fix crash reading mail after deleting inbox.msf file, r=jefft
This commit is contained in:
parent
ae50d01940
commit
81f77c0efc
@ -671,6 +671,9 @@ NS_IMETHODIMP nsMsgDatabase::ForceClosed()
|
||||
// OK, remove from cache first and close the store.
|
||||
RemoveFromCache(this);
|
||||
|
||||
NS_IF_RELEASE(m_dbFolderInfo);
|
||||
m_dbFolderInfo = nsnull;
|
||||
|
||||
err = CloseMDB(PR_FALSE); // since we're about to delete it, no need to commit.
|
||||
if (m_mdbStore)
|
||||
{
|
||||
|
@ -1334,7 +1334,10 @@ NS_IMETHODIMP nsImapMailFolder::UpdateImapMailboxInfo(
|
||||
originalInfo = new TNeoFolderInfoTransfer(dbFolderInfo);
|
||||
#endif // 0
|
||||
if (mDatabase)
|
||||
{
|
||||
dbFolderInfo = null_nsCOMPtr();
|
||||
mDatabase->ForceClosed();
|
||||
}
|
||||
mDatabase = null_nsCOMPtr();
|
||||
|
||||
nsLocalFolderSummarySpec summarySpec(dbName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user