mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 856784 - null-check mUserFontData before use. r=jkew
This commit is contained in:
parent
b7d2424ff1
commit
61ecbdc263
11
gfx/tests/crashtests/856784-1.html
Normal file
11
gfx/tests/crashtests/856784-1.html
Normal file
File diff suppressed because one or more lines are too long
@ -89,3 +89,4 @@ load 633322-1.html
|
||||
load 686190-1.html
|
||||
load 693143-1.html
|
||||
load 768079-1.html
|
||||
load 856784-1.html
|
||||
|
@ -790,7 +790,9 @@ gfxUserFontSet::UserFontCache::ForgetFont(gfxFontEntry *aFontEntry)
|
||||
}
|
||||
|
||||
gfxUserFontData *data = aFontEntry->mUserFontData;
|
||||
sUserFonts->RemoveEntry(Key(data->mURI, data->mPrincipal, aFontEntry));
|
||||
if (data) {
|
||||
sUserFonts->RemoveEntry(Key(data->mURI, data->mPrincipal, aFontEntry));
|
||||
}
|
||||
}
|
||||
|
||||
gfxFontEntry*
|
||||
|
Loading…
Reference in New Issue
Block a user