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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user