fix a search-and-replace mistake that was hiding in an #ifdef

This commit is contained in:
jband%netscape.com 2000-03-30 22:37:29 +00:00
Родитель 01d3066654
Коммит b7e17c9d8f
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -250,11 +250,11 @@ nsXPConnect::ReleaseXPConnectSingleton()
if(GetRuntime() && GetRuntime()->GetJSRuntime())
{
AutoPushCompatibleJSContext a(GetRuntime()->GetJSRuntime());
if(a.GetSafeJSContext())
if(a.GetJSContext())
{
FILE* oldFileHandle = js_DumpGCHeap;
js_DumpGCHeap = stdout;
js_ForceGC(a.GetSafeJSContext());
js_ForceGC(a.GetJSContext());
js_DumpGCHeap = oldFileHandle;
}
}