From 1e98e9a663143692c78d5bf7b32751cd3c33cf62 Mon Sep 17 00:00:00 2001 From: "vidur%netscape.com" Date: Mon, 26 Oct 1998 23:22:59 +0000 Subject: [PATCH] Added GC method to script context git-svn-id: svn://10.0.0.236/trunk@13514 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsWebShell.cpp | 3 +++ mozilla/webshell/src/nsWebShell.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 83e64263c74..0f359559a08 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -535,6 +535,9 @@ nsWebShell::Embed(nsIContentViewer* aContentViewer, this, aContentViewer, aCommand ? aCommand : "", aExtraInfo)); NS_IF_RELEASE(mContentViewer); + if (nsnull != mScriptContext) { + mScriptContext->GC(); + } mContentViewer = aContentViewer; NS_ADDREF(aContentViewer); diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index 83e64263c74..0f359559a08 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -535,6 +535,9 @@ nsWebShell::Embed(nsIContentViewer* aContentViewer, this, aContentViewer, aCommand ? aCommand : "", aExtraInfo)); NS_IF_RELEASE(mContentViewer); + if (nsnull != mScriptContext) { + mScriptContext->GC(); + } mContentViewer = aContentViewer; NS_ADDREF(aContentViewer);