зеркало из https://github.com/mozilla/gecko-dev.git
fix a search-and-replace mistake that was hiding in an #ifdef
This commit is contained in:
Родитель
01d3066654
Коммит
b7e17c9d8f
|
@ -250,11 +250,11 @@ nsXPConnect::ReleaseXPConnectSingleton()
|
||||||
if(GetRuntime() && GetRuntime()->GetJSRuntime())
|
if(GetRuntime() && GetRuntime()->GetJSRuntime())
|
||||||
{
|
{
|
||||||
AutoPushCompatibleJSContext a(GetRuntime()->GetJSRuntime());
|
AutoPushCompatibleJSContext a(GetRuntime()->GetJSRuntime());
|
||||||
if(a.GetSafeJSContext())
|
if(a.GetJSContext())
|
||||||
{
|
{
|
||||||
FILE* oldFileHandle = js_DumpGCHeap;
|
FILE* oldFileHandle = js_DumpGCHeap;
|
||||||
js_DumpGCHeap = stdout;
|
js_DumpGCHeap = stdout;
|
||||||
js_ForceGC(a.GetSafeJSContext());
|
js_ForceGC(a.GetJSContext());
|
||||||
js_DumpGCHeap = oldFileHandle;
|
js_DumpGCHeap = oldFileHandle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче