Bug 1165766 - Crash in AddFontSetFamilies() r=jtd

This commit is contained in:
Fabrice Desré 2015-05-17 20:33:46 -07:00
Родитель 1a9127270f
Коммит ebe1917cb3
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -956,6 +956,11 @@ gfxFcPlatformFontList::AddFontSetFamilies(FcFontSet* aFontSet)
// excluding non-scalable fonts such as X11 bitmap fonts, which // excluding non-scalable fonts such as X11 bitmap fonts, which
// Chrome Skia/Webkit code does also. // Chrome Skia/Webkit code does also.
if (!aFontSet) {
NS_WARNING("AddFontSetFamilies called with a null font set.");
return;
}
FcChar8* lastFamilyName = (FcChar8*)""; FcChar8* lastFamilyName = (FcChar8*)"";
gfxFontFamily* fontFamily = nullptr; gfxFontFamily* fontFamily = nullptr;
nsAutoString familyName; nsAutoString familyName;