mPrintDocList->Clear(); delete mPrintDocList;
if (mPrintDocList != nsnull) { mPrintDocList->Clear(); delete mPrintDocList; }
PrintData::~PrintData() {  // printing is complete, clean up now  OnEndPrinting(NS_OK); // removes listener  if (mPrintDC) {#ifdef DEBUG_PRINTING    fprintf(mDebugFD, "****************** End Document ************************\n");#endif    mPrintDC->EndDocument();  }  delete mPrintObject;  mPrintDocList->Clear();  delete mPrintDocList;#ifdef DEBUG_PRINTING  fclose(mDebugFD);#endif  DocumentViewerImpl::mIsDoingPrinting = PR_FALSE;}