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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user