Skip to content

Commit

Permalink
[sailfishos][gecko] Fix regression from bug 1261175
Browse files Browse the repository at this point in the history
The mPrintEngine member is declared only if NS_PRINTING is defined. Thus,
guard it accordingly.
  • Loading branch information
rainemak committed May 27, 2020
1 parent a8057ff commit b26f2a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layout/base/nsDocumentViewer.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit b26f2a0

Please sign in to comment.