From 85b11d0f15e65adefa1926f417fea36a1e65ea2d Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Tue, 6 Jun 2000 08:08:41 +0000 Subject: [PATCH] last checkin was: fix for #41608 - be sure to remove the script context from the GC root! r=shaver, jst a=putterman git-svn-id: svn://10.0.0.236/trunk@71600 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/dom/src/base/nsGlobalWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mozilla/dom/src/base/nsGlobalWindow.cpp b/mozilla/dom/src/base/nsGlobalWindow.cpp index 6a4e9a02b9c..05836db05d1 100644 --- a/mozilla/dom/src/base/nsGlobalWindow.cpp +++ b/mozilla/dom/src/base/nsGlobalWindow.cpp @@ -216,6 +216,7 @@ NS_IMETHODIMP GlobalWindowImpl::SetContext(nsIScriptContext *aContext) NS_WARNING("Possibly early removal of script object, see bug #41608"); mContext->RemoveReference(&mScriptObject, mScriptObject); } + mContext = aContext; return NS_OK; }