зеркало из https://github.com/mozilla/gecko-dev.git
#74899 Mozilla crashes in GKGFXWIN.DLL when changing font for a specific encodin
g from Prefs r=nhotta, sr=waterson When freeing global stuff, after cmaps are freed, globalFont should do it too.
This commit is contained in:
Родитель
93222981bf
Коммит
0b421a6a2c
|
@ -187,6 +187,16 @@ 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
|
||||
|
|
Загрузка…
Ссылка в новой задаче