nsPrintObject::~nsPrintObject() { for (PRUint32 i=0;i<mKids.Length();i++) { nsPrintObject* po = mKids[i]; delete po; } DestroyPresentation(); }
nsPrintObject::~nsPrintObject() { MOZ_COUNT_DTOR(nsPrintObject); DestroyPresentation(); if (mDidCreateDocShell && mDocShell) { nsCOMPtr<nsIBaseWindow> baseWin(do_QueryInterface(mDocShell)); if (baseWin) { baseWin->Destroy(); } } mDocShell = nullptr; mTreeOwner = nullptr; // mTreeOwner must be released after mDocShell; }
nsPrintObject::~nsPrintObject() { MOZ_COUNT_DTOR(nsPrintObject); for (uint32_t i=0;i<mKids.Length();i++) { nsPrintObject* po = mKids[i]; delete po; } DestroyPresentation(); if (mDidCreateDocShell && mDocShell) { nsCOMPtr<nsIBaseWindow> baseWin(do_QueryInterface(mDocShell)); if (baseWin) { baseWin->Destroy(); } } mDocShell = nullptr; mTreeOwner = nullptr; // mTreeOwner must be released after mDocShell; }