зеркало из https://github.com/mozilla/gecko-dev.git
Bug 803255. Ensure previous document viewer is cleared when creating a new one to avoid leaking the old one. r=bz
This commit is contained in:
Родитель
08e5b80f4e
Коммит
d158dec950
|
@ -909,6 +909,12 @@ DocumentViewerImpl::InitInternal(nsIWidget* aParentWidget,
|
|||
mPresContext->SetPageScale(1.0f);
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
// Avoid leaking the old viewer.
|
||||
if (mPreviousViewer) {
|
||||
mPreviousViewer->Destroy();
|
||||
mPreviousViewer = nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче