mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 975460 - check for null CTFontRef after creation. r=jfkthame
This commit is contained in:
parent
7644ee9553
commit
4d834aff1c
@ -1078,6 +1078,10 @@ MacFontInfo::LoadFontFamilyData(const nsAString& aFamilyName)
|
||||
}
|
||||
CTFontRef fontRef = CTFontCreateWithFontDescriptor(faceDesc,
|
||||
0.0, nullptr);
|
||||
if (!fontRef) {
|
||||
NS_WARNING("failed to create a CTFontRef");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (mLoadCmaps) {
|
||||
// face name
|
||||
|
Loading…
Reference in New Issue
Block a user