mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1067343 - Check that mAvailableFonts[i] is non-null before trying to use it. r=jdaggett
This commit is contained in:
parent
c21d3386f6
commit
dcf285b64a
@ -1303,7 +1303,7 @@ gfxFontFamily::ContainsFace(gfxFontEntry* aFontEntry) {
|
||||
return true;
|
||||
}
|
||||
// userfonts contain the actual real font entry
|
||||
if (mAvailableFonts[i]->mIsUserFontContainer) {
|
||||
if (mAvailableFonts[i] && mAvailableFonts[i]->mIsUserFontContainer) {
|
||||
gfxUserFontEntry* ufe =
|
||||
static_cast<gfxUserFontEntry*>(mAvailableFonts[i].get());
|
||||
if (ufe->GetPlatformFontEntry() == aFontEntry) {
|
||||
|
Loading…
Reference in New Issue
Block a user