#80756 Font list is empty after selecting a font in Pref->Font dlg

This is a regression caused by fix in 74899. I will back out that
fix to fix this. A new patch will be proposed for 74899.


git-svn-id: svn://10.0.0.236/trunk@94930 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
shanjian%netscape.com 2001-05-15 03:28:35 +00:00
parent b4cdb2e889
commit feacdf586c

View File

@ -187,16 +187,6 @@ FreeGlobals(void)
}
nsFontMetricsWin::gFontMaps = nsnull;
gInitializedFontMaps = 0;
if (nsFontMetricsWin::gGlobalFonts) {
//while all cmap is freed, gGlobalFonts's pointer should be freed too.
for (int i = 0; i < nsFontMetricsWin::gGlobalFontsCount; i++) {
delete nsFontMetricsWin::gGlobalFonts[i].name;
}
PR_Free(nsFontMetricsWin::gGlobalFonts);
nsFontMetricsWin::gGlobalFonts = nsnull;
gGlobalFontsAlloc = 0;
nsFontMetricsWin::gGlobalFontsCount = 0;
}
}
// free FamilyNames