nsFontCharSetMap* charSetMap; for (charSetMap=gCharSetMap; charSetMap->mFontLangGroup; charSetMap++) { NS_IF_RELEASE(charSetMap->mFontLangGroup->mFontLangGroupAtom); charSetMap->mFontLangGroup->mFontLangGroupAtom = nsnull; }
FreeGlobals(void){  // XXX complete this  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 (gCachedFFRESearches) {    gCachedFFRESearches->Reset(FreeNodeArray, nsnull);    delete gCachedFFRESearches;    gCachedFFRESearches = 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);  NS_IF_RELEASE(gUsersLocale);  if (gWeights) {    delete gWeights;    gWeights = nsnull;  }}