mPrintEngine->Destroy(); NS_RELEASE(mPrintEngine);
if (GetIsPrintPreview()) { mPrintEngine->DestroyPrintingData(); } else { mPrintEngine->Destroy(); NS_RELEASE(mPrintEngine); }
DocumentViewerImpl::OnDonePrinting() {#if defined(NS_PRINTING) && defined(NS_PRINT_PREVIEW)  if (mPrintEngine) {    mPrintEngine->Destroy();    NS_RELEASE(mPrintEngine);  }#endif // NS_PRINTING && NS_PRINT_PREVIEW}