mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1209351 (part 3) - Optimize nsTHashTable::RemoveEntry() usage in gfx/. r=jrmuizel.
--HG-- extra : rebase_source : 6de68bea02948d4a1e886da3f9b05d46c9762463
This commit is contained in:
parent
77d38112ab
commit
1dbfbe1606
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user