зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1165766 - Crash in AddFontSetFamilies() r=jtd
This commit is contained in:
Родитель
1a9127270f
Коммит
ebe1917cb3
|
@ -956,6 +956,11 @@ gfxFcPlatformFontList::AddFontSetFamilies(FcFontSet* aFontSet)
|
|||
// excluding non-scalable fonts such as X11 bitmap fonts, which
|
||||
// Chrome Skia/Webkit code does also.
|
||||
|
||||
if (!aFontSet) {
|
||||
NS_WARNING("AddFontSetFamilies called with a null font set.");
|
||||
return;
|
||||
}
|
||||
|
||||
FcChar8* lastFamilyName = (FcChar8*)"";
|
||||
gfxFontFamily* fontFamily = nullptr;
|
||||
nsAutoString familyName;
|
||||
|
|
Загрузка…
Ссылка в новой задаче