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