Bug 339518: Switching IMAP folders while "mark-as-spam" is running causes a crash [@ nsMsgDBView::DeleteMessages], patch by Adam Guthrie <ispiked@gmail.com>, r+sr=bienvenu, a=dveditz

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@207693 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
flamingice%sourmilk.net
2006-08-17 04:27:44 +00:00
parent 9804cb7690
commit 4b58cdfac8

View File

@@ -1864,6 +1864,11 @@ NS_IMETHODIMP nsMsgDBView::Close()
m_flags.RemoveAll();
m_levels.RemoveAll();
// clear these out since they no longer apply if we're switching a folder
nsMemory::Free(mJunkIndices);
mJunkIndices = nsnull;
mNumJunkIndices = 0;
// this needs to happen after we remove all the keys, since RowCountChanged() will call our GetRowCount()
if (mTree)
mTree->RowCountChanged(0, -oldSize);