diff options
author | Moonchild <moonchild@palemoon.org> | 2020-05-21 16:22:51 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-05-21 16:22:51 +0000 |
commit | ed8efdfaba9e613cc3568105acbe3ee785100333 (patch) | |
tree | e0c8f79ae2941fb190562d2aab272c759e182d78 /layout | |
parent | 5d6691e9d08dce30b461fced32ece77fd3ff1933 (diff) | |
download | uxp-ed8efdfaba9e613cc3568105acbe3ee785100333.tar.gz |
[printing] Fix build bustage with --disable-printing
Diffstat (limited to 'layout')
-rw-r--r-- | layout/base/nsDocumentViewer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index 8baf1a464b..df0f1266d5 100644 --- a/layout/base/nsDocumentViewer.cpp +++ b/layout/base/nsDocumentViewer.cpp @@ -544,10 +544,12 @@ nsDocumentViewer::~nsDocumentViewer() mDocument->Destroy(); } +#ifdef NS_PRINTING if (mPrintEngine) { mPrintEngine->Destroy(); mPrintEngine = nullptr; } +#endif MOZ_RELEASE_ASSERT(mDestroyRefCount == 0); NS_ASSERTION(!mPresShell && !mPresContext, |