mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 19:09:49 +00:00
Added GC method to script context
This commit is contained in:
parent
9e59e54ad2
commit
94f6316cfc
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user