fix memory leak and comment out assertion

git-svn-id: svn://10.0.0.236/trunk@40444 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bienvenu%netscape.com
1999-07-21 17:49:42 +00:00
parent 1ceb445f0e
commit b61ae6dcac

View File

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