fix memory leak and comment out assertion

This commit is contained in:
bienvenu%netscape.com 1999-07-21 17:49:42 +00:00
Родитель ab824f133b
Коммит 8b5a7062e6
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -719,7 +719,8 @@ NS_IMETHODIMP nsMsgDatabase::Commit(nsMsgDBCommit commitType)
{
err = commitThumb->DoMore(GetEnv(), &outTotal, &outCurrent, &outDone, &outBroken);
}
NS_RELEASE(commitThumb);
if(commitThumb)
commitThumb->CutStrongRef(m_mdbEnv);
}
// ### do something with error, but clear it now because mork errors out on commits.
if (GetEnv())
@ -1049,7 +1050,7 @@ nsresult nsMsgDatabase::RemoveHeaderFromDB(nsMsgHdr *msgHdr)
ret = thread->RemoveChildHdr(msgHdr);
else
{
NS_ASSERTION(PR_FALSE, "couldn't find thread containing deleted message");
// NS_ASSERTION(PR_FALSE, "couldn't find thread containing deleted message");
}
// even if we couldn't find the thread,we should try to remove the header.
// if (NS_SUCCEEDED(ret))