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

git-svn-id: svn://10.0.0.236/trunk@9565 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1998-09-08 22:38:48 +00:00
parent 9d8f9aaffa
commit 1e5e004c86
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);