mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 03:00:30 +00:00
fix crash compacting local folders, r=naving, sr=mscott 66002
This commit is contained in:
parent
51b3d54882
commit
d9717de723
@ -125,7 +125,6 @@ nsFolderCompactState::InitDB(nsIMsgDatabase *db)
|
||||
getter_AddRefs(m_db));
|
||||
}
|
||||
}
|
||||
db ->ListAllKeys(m_keyArray);
|
||||
return rv;
|
||||
}
|
||||
|
||||
@ -140,12 +139,13 @@ nsFolderCompactState::Init(nsIMsgFolder *folder, const char *baseMsgUri, nsIMsgD
|
||||
if (!m_baseMessageUri)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
pathSpec->GetFileSpec(&m_fileSpec);
|
||||
m_fileSpec.SetLeafName("nstmp");
|
||||
|
||||
InitDB(db);
|
||||
|
||||
m_size = m_keyArray.GetSize();
|
||||
m_curIndex = 0;
|
||||
pathSpec->GetFileSpec(&m_fileSpec);
|
||||
m_fileSpec.SetLeafName("nstmp");
|
||||
|
||||
m_fileStream = new nsOutputFileStream(m_fileSpec);
|
||||
if (!m_fileStream)
|
||||
|
Loading…
Reference in New Issue
Block a user