if (gGeneric) { delete gGeneric; gGeneric = nsnull;
gInitialized = 0;   if (gAliases) { delete gAliases; gAliases = nsnull; } NS_IF_RELEASE(gCharSetManager); if (gCharSets) { gCharSets->Reset(FreeCharSet, nsnull); delete gCharSets; gCharSets = nsnull; } if (gFamilies) { gFamilies->Reset(FreeFamily, nsnull); delete gFamilies; gFamilies = nsnull; } if (gGlobalList) { delete gGlobalList; gGlobalList = nsnull; } if (gNodes) { gNodes->Reset(FreeNode, nsnull); delete gNodes; gNodes = nsnull; } NS_IF_RELEASE(gPref); if (gSpecialCharSets) { delete gSpecialCharSets; gSpecialCharSets = nsnull; } if (gStretches) { delete gStretches; gStretches = nsnull; } NS_IF_RELEASE(gUnicode); NS_IF_RELEASE(gUserDefined); NS_IF_RELEASE(gUserDefinedConverter); if (gWeights) { delete gWeights; gWeights = nsnull;
FreeGlobals(void){  // XXX finish this  if (gGeneric) {    delete gGeneric;    gGeneric = nsnull;  }}