Fixing bug 198254. Fix crash when closing javascript created window. r+sr=bzbarsky@mit.edu

git-svn-id: svn://10.0.0.236/trunk@160932 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jst%mozilla.jstenback.com
2004-08-18 22:13:10 +00:00
parent d29538e44e
commit daf8d7f24a
2 changed files with 6 additions and 0 deletions

View File

@@ -1928,6 +1928,9 @@ PresShell::Destroy()
// pres shell to NULL
if (mPresContext) {
mPresContext->SetShell(nsnull);
// Clear the link handler (weak reference) as well
mPresContext->SetLinkHandler(nsnull);
}
if (mViewEventListener) {