Bug 856784 - null-check mUserFontData before use. r=jkew

This commit is contained in:
John Daggett 2013-04-03 11:01:41 +09:00
parent b7d2424ff1
commit 61ecbdc263
3 changed files with 15 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -89,3 +89,4 @@ load 633322-1.html
load 686190-1.html
load 693143-1.html
load 768079-1.html
load 856784-1.html

View File

@ -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*