Bug 1209351 (part 3) - Optimize nsTHashTable::RemoveEntry() usage in gfx/. r=jrmuizel.

--HG--
extra : rebase_source : 6de68bea02948d4a1e886da3f9b05d46c9762463
This commit is contained in:
Nicholas Nethercote 2015-09-24 19:07:22 -07:00
parent 77d38112ab
commit 1dbfbe1606

View File

@ -288,7 +288,7 @@ gfxFontCache::DestroyFont(gfxFont *aFont)
aFont->GetUnicodeRangeMap());
HashEntry *entry = mFonts.GetEntry(key);
if (entry && entry->mFont == aFont) {
mFonts.RemoveEntry(key);
mFonts.RemoveEntry(entry);
}
NS_ASSERTION(aFont->GetRefCount() == 0,
"Destroying with non-zero ref count!");