Put comment in the right place. b=180380

This commit is contained in:
dbaron@dbaron.org 2007-07-03 14:31:02 -07:00
Родитель 91e460c07f
Коммит 1cbc7c38ef
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -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?