summaryrefslogtreecommitdiffstats
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
commit1e55a5d9188b87da8632e217b238838effb1cdeb (patch)
tree71add4105cf8eda5a06f246978703628e911e82e
parent2a10b213f1d33511ca3c3602ca39b8b69dced935 (diff)
downloadUXP-1e55a5d9188b87da8632e217b238838effb1cdeb.tar
UXP-1e55a5d9188b87da8632e217b238838effb1cdeb.tar.gz
UXP-1e55a5d9188b87da8632e217b238838effb1cdeb.tar.lz
UXP-1e55a5d9188b87da8632e217b238838effb1cdeb.tar.xz
UXP-1e55a5d9188b87da8632e217b238838effb1cdeb.zip
Bug 1261175.
-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 a1105ae52..782ac332c 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) {