Destroy font metrics before releasing it

This commit is contained in:
kipp%netscape.com 1998-09-08 22:31:28 +00:00
parent 56e9b75334
commit eec208e30b

View File

@ -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();