From 1b94e401a8b54409e49230906710c5316b41f7f3 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Thu, 6 Aug 1998 19:52:48 +0000 Subject: [PATCH] Landed changes made on branch (bug #312572) --- layout/base/src/nsPresShell.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layout/base/src/nsPresShell.cpp b/layout/base/src/nsPresShell.cpp index 93cc02ff278..b8d8b982200 100644 --- a/layout/base/src/nsPresShell.cpp +++ b/layout/base/src/nsPresShell.cpp @@ -305,6 +305,7 @@ PresShell::QueryInterface(const nsIID& aIID, void** aInstancePtr) PresShell::~PresShell() { + mRefCnt = 99;/* XXX hack! get around re-entrancy bugs */ if (nsnull != mDocument) { mDocument->DeleteShell(this); NS_RELEASE(mDocument); @@ -315,6 +316,7 @@ PresShell::~PresShell() NS_IF_RELEASE(mPresContext); NS_IF_RELEASE(mViewManager); NS_IF_RELEASE(mStyleSet); + mRefCnt = 0; } /**