Bug 12874. Remove unnecessary refcount hackery. This hasn't been necessary since we made NS_IMPL_ISUPPORTS and friends stabilize refcount before calling dtor.

This commit is contained in:
waterson%netscape.com 2000-06-16 21:47:13 +00:00
Родитель 458f2c3abf
Коммит a3fff38aac
2 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

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

Просмотреть файл

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