From a3fff38aac25396906f514f6c8ef7da9967935d2 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Fri, 16 Jun 2000 21:47:13 +0000 Subject: [PATCH] Bug 12874. Remove unnecessary refcount hackery. This hasn't been necessary since we made NS_IMPL_ISUPPORTS and friends stabilize refcount before calling dtor. --- layout/base/nsPresShell.cpp | 3 --- layout/html/base/src/nsPresShell.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index b35d8578b1d..30a12bcb5db 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -1020,8 +1020,6 @@ PresShell::~PresShell() // if we allocated any stack memory free it. FreeDynamicStack(); - mRefCnt = 99;/* XXX hack! get around re-entrancy bugs */ - mIsDestroying = PR_TRUE; // Clobber weak leaks in case of re-entrancy during tear down @@ -1063,7 +1061,6 @@ PresShell::~PresShell() if (mPresContext) { mPresContext->SetShell(nsnull); } - mRefCnt = 0; if (mViewEventListener) { mViewEventListener->SetPresShell((nsIPresShell*)nsnull); diff --git a/layout/html/base/src/nsPresShell.cpp b/layout/html/base/src/nsPresShell.cpp index b35d8578b1d..30a12bcb5db 100644 --- a/layout/html/base/src/nsPresShell.cpp +++ b/layout/html/base/src/nsPresShell.cpp @@ -1020,8 +1020,6 @@ PresShell::~PresShell() // if we allocated any stack memory free it. FreeDynamicStack(); - mRefCnt = 99;/* XXX hack! get around re-entrancy bugs */ - mIsDestroying = PR_TRUE; // Clobber weak leaks in case of re-entrancy during tear down @@ -1063,7 +1061,6 @@ PresShell::~PresShell() if (mPresContext) { mPresContext->SetShell(nsnull); } - mRefCnt = 0; if (mViewEventListener) { mViewEventListener->SetPresShell((nsIPresShell*)nsnull);