bug 724356 - check the proxy's family pointer is still valid before using it. r=jdaggett

This commit is contained in:
Jonathan Kew 2012-02-05 20:10:50 +00:00
Родитель 7a1abbaffe
Коммит 951d7fc669
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -707,8 +707,11 @@ nsUserFontSet::ReplaceFontEntry(gfxProxyFontEntry *aProxy,
break;
}
}
static_cast<gfxMixedFontFamily*>(aProxy->Family())->
ReplaceFontEntry(aProxy, aFontEntry);
gfxMixedFontFamily *family =
static_cast<gfxMixedFontFamily*>(aProxy->Family());
if (family) {
family->ReplaceFontEntry(aProxy, aFontEntry);
}
}
nsCSSFontFaceRule*