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
parent 01d3066654
commit b7e17c9d8f

View File

@ -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;
}
}