mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 818626 - Release nsPresContext after its PresShell when destroying an nsPrintObject. r=roc
--HG-- extra : rebase_source : d5d21e5b1c06700d69ebe9ce63cb5a9a40b18dbe
This commit is contained in:
parent
412140da91
commit
966bdd29d8
@ -100,12 +100,12 @@ nsPrintObject::Init(nsIDocShell* aDocShell, nsIDOMDocument* aDoc,
|
||||
void
|
||||
nsPrintObject::DestroyPresentation()
|
||||
{
|
||||
mPresContext = nullptr;
|
||||
if (mPresShell) {
|
||||
mPresShell->EndObservingDocument();
|
||||
nsAutoScriptBlocker scriptBlocker;
|
||||
mPresShell->Destroy();
|
||||
}
|
||||
mPresContext = nullptr;
|
||||
mPresShell = nullptr;
|
||||
mViewManager = nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user