Fix leak stats by calling NS_LOG_RELEASE for every release. Debug code only. r=dougt

git-svn-id: svn://10.0.0.236/trunk@77395 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2000-08-28 23:23:32 +00:00
parent e996cf1749
commit 62dfa751bf

View File

@@ -265,10 +265,10 @@ nsProxyObject::Release(void)
NS_PRECONDITION(0 != mRefCnt, "dup release");
nsrefcnt count = PR_AtomicDecrement((PRInt32 *)&mRefCnt);
NS_LOG_RELEASE(this, count, "nsProxyObject");
if (count == 0)
{
NS_LOG_RELEASE(this, mRefCnt, "nsProxyObject");
mRefCnt = 1; /* stabilize */
PRBool callDirectly;