Added GC method to script context

git-svn-id: svn://10.0.0.236/trunk@13514 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
vidur%netscape.com
1998-10-26 23:22:59 +00:00
parent f7190f6f47
commit 1e98e9a663
2 changed files with 6 additions and 0 deletions

View File

@@ -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);

View File

@@ -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);