PrefNameBuffer::FreeAllBuffers();
void PREF_CleanupPrefs(){    gMochaTaskState = NULL; /* We -don't- destroy this. */    if (gMochaContext) {        JSRuntime *rt;        gMochaPrefObject = NULL;        if (gGlobalConfigObject) {            JS_SetGlobalObject(gMochaContext, NULL);            gGlobalConfigObject = NULL;        }        rt = PREF_GetJSRuntime();        if (rt == JS_GetRuntime(gMochaContext)) {            JS_DestroyContext(gMochaContext);            gMochaContext = NULL;        } else {#ifdef DEBUG            fputs("Runtime mismatch, so leaking context!\n", stderr);#endif        }    }    if (gHashTable.ops) {        PL_DHashTableFinish(&gHashTable);        gHashTable.ops = nsnull;    }    PrefNameBuffer::FreeAllBuffers();        if (gSavedLine)        free(gSavedLine);    gSavedLine = NULL;}