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:
Родитель
458f2c3abf
Коммит
a3fff38aac
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче