fix crash reading mail after deleting inbox.msf file, r=jefft

This commit is contained in:
bienvenu%netscape.com 2000-01-04 15:58:54 +00:00
parent ae50d01940
commit 81f77c0efc
2 changed files with 6 additions and 0 deletions

View File

@ -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)
{

View File

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