зеркало из https://github.com/mozilla/pjs.git
Put comment in the right place. b=180380
This commit is contained in:
Родитель
1f3bd4082b
Коммит
acfb4f5b38
|
@ -228,15 +228,17 @@ nsXPConnect::~nsXPConnect()
|
|||
|
||||
JSContext *cx = nsnull;
|
||||
if (mRuntime) {
|
||||
// Create our own JSContext rather than an XPCCallContext, since
|
||||
// otherwise we will create a new safe JS context and attach a
|
||||
// components object that won't get GCed.
|
||||
// And do this before calling CleanupAllThreads, so that we
|
||||
// don't create an extra xpcPerThreadData.
|
||||
cx = JS_NewContext(mRuntime->GetJSRuntime(), 8192);
|
||||
}
|
||||
|
||||
XPCPerThreadData::CleanupAllThreads();
|
||||
mShuttingDown = JS_TRUE;
|
||||
if (cx) {
|
||||
// Create our own JSContext rather than an XPCCallContext, since
|
||||
// otherwise we will create a new safe JS context and attach a
|
||||
// components object that won't get GCed.
|
||||
JS_BeginRequest(cx);
|
||||
|
||||
// XXX Call even if |mRuntime| null?
|
||||
|
|
Загрузка…
Ссылка в новой задаче