From ed8efdfaba9e613cc3568105acbe3ee785100333 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Thu, 21 May 2020 16:22:51 +0000 Subject: [printing] Fix build bustage with --disable-printing --- layout/base/nsDocumentViewer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'layout') diff --git a/layout/base/nsDocumentViewer.cpp b/layout/base/nsDocumentViewer.cpp index 8baf1a464..df0f1266d 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, -- cgit v1.2.3