From feacdf586ca0ceb42f2e52cc2eba8ae791297a7d Mon Sep 17 00:00:00 2001 From: "shanjian%netscape.com" Date: Tue, 15 May 2001 03:28:35 +0000 Subject: [PATCH] #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 --- mozilla/gfx/src/windows/nsFontMetricsWin.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/mozilla/gfx/src/windows/nsFontMetricsWin.cpp b/mozilla/gfx/src/windows/nsFontMetricsWin.cpp index c9427d7a60e..5be352473f8 100644 --- a/mozilla/gfx/src/windows/nsFontMetricsWin.cpp +++ b/mozilla/gfx/src/windows/nsFontMetricsWin.cpp @@ -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