summaryrefslogtreecommitdiff
path: root/layout/base
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-07 21:18:43 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-07 21:18:43 +0100
commit4fd4e3ade9cc9e05caea0a9fd388607cdbebe60d (patch)
tree71add4105cf8eda5a06f246978703628e911e82e /layout/base
parent1c42487c2d5daab7f4914edcfd388d23ae812203 (diff)
downloaduxp-4fd4e3ade9cc9e05caea0a9fd388607cdbebe60d.tar.gz
Bug 1261175.
Diffstat (limited to 'layout/base')
-rw-r--r--layout/base/nsDocumentViewer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp
index a1105ae524..782ac332ce 100644
--- a/layout/base/nsDocumentViewer.cpp
+++ b/layout/base/nsDocumentViewer.cpp
@@ -544,6 +544,12 @@ nsDocumentViewer::~nsDocumentViewer()
mDocument->Destroy();
}
+ if (mPrintEngine) {
+ mPrintEngine->Destroy();
+ mPrintEngine = nullptr;
+ }
+
+ MOZ_RELEASE_ASSERT(mDestroyRefCount == 0);
NS_ASSERTION(!mPresShell && !mPresContext,
"User did not call nsIContentViewer::Destroy");
if (mPresShell || mPresContext) {