зеркало из https://github.com/mozilla/gecko-dev.git
Flush font cache before destroying device context to break circular links (ick)
This commit is contained in:
Родитель
c370fc4b19
Коммит
ace6a93d02
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче