Added GC method to script context

This commit is contained in:
vidur%netscape.com 1998-10-26 23:22:59 +00:00
parent 9e59e54ad2
commit 94f6316cfc
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);