From b61ae6dcac7dbb76ccf53c815ab868fabf2213f7 Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Wed, 21 Jul 1999 17:49:42 +0000 Subject: [PATCH] fix memory leak and comment out assertion git-svn-id: svn://10.0.0.236/trunk@40444 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/db/msgdb/src/nsMsgDatabase.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/mailnews/db/msgdb/src/nsMsgDatabase.cpp b/mozilla/mailnews/db/msgdb/src/nsMsgDatabase.cpp index 9b8830d468c..079e799e40b 100644 --- a/mozilla/mailnews/db/msgdb/src/nsMsgDatabase.cpp +++ b/mozilla/mailnews/db/msgdb/src/nsMsgDatabase.cpp @@ -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))