Flush font cache before destroying device context to break circular links (ick)
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