From 00a46e0838d77ad0d447a34e56e6033151daa75f Mon Sep 17 00:00:00 2001 From: "jst%mozilla.jstenback.com" Date: Wed, 1 Sep 2004 19:41:44 +0000 Subject: [PATCH] Fixing bug 257649. Fixing shutdown leak (again) caused by the global scope polluter. r+sr=brendan@mozilla.org git-svn-id: svn://10.0.0.236/trunk@161598 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/dom/src/base/nsGlobalWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/dom/src/base/nsGlobalWindow.cpp b/mozilla/dom/src/base/nsGlobalWindow.cpp index 14130734f3a..4f3c2822593 100644 --- a/mozilla/dom/src/base/nsGlobalWindow.cpp +++ b/mozilla/dom/src/base/nsGlobalWindow.cpp @@ -604,7 +604,7 @@ GlobalWindowImpl::SetNewDocument(nsIDOMDocument* aDocument, ::JS_ClearRegExpStatics(cx); if (gsp) { - nsCOMPtr html_doc(do_QueryInterface(mDocument)); + nsCOMPtr html_doc(do_QueryInterface(aDocument)); nsWindowSH::InstallGlobalScopePolluter(cx, mJSObject, gsp, html_doc);