mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-26 18:31:29 +00:00
Destroy font metrics before releasing it
This commit is contained in:
parent
56e9b75334
commit
eec208e30b
@ -123,6 +123,7 @@ NS_IMETHODIMP FontCacheImpl::Flush()
|
||||
PRInt32 i, n = mFontMetrics.Count();
|
||||
for (i = 0; i < n; i++) {
|
||||
nsIFontMetrics* fm = (nsIFontMetrics*) mFontMetrics.ElementAt(i);
|
||||
fm->Destroy();
|
||||
NS_RELEASE(fm);
|
||||
}
|
||||
mFontMetrics.Clear();
|
||||
|
Loading…
Reference in New Issue
Block a user