Flush font cache before destroying device context to break circular links (ick)

This commit is contained in:
kipp@netscape.com
1998-09-08 22:38:48 +00:00
parent fb058e66f7
commit cedde4e311
2 changed files with 8 additions and 2 deletions

View File

@@ -350,7 +350,10 @@ nsWebShell::~nsWebShell()
NS_IF_RELEASE(mInnerWindow);
NS_IF_RELEASE(mContentViewer);
NS_IF_RELEASE(mDeviceContext);
if (nsnull != mDeviceContext) {
mDeviceContext->FlushFontCache();
NS_RELEASE(mDeviceContext);
}
NS_IF_RELEASE(mPrefs);
NS_IF_RELEASE(mContainer);
NS_IF_RELEASE(mObserver);