no need to test that the pointer is non-NULL before deleting it (closes #10070)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-10-13 10:35:07 +00:00
parent 340e9651e1
commit 0b1ca1177d
6 changed files with 6 additions and 13 deletions

View File

@@ -411,8 +411,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
// May have pressed cancel.
if (!dc || !dc->IsOk())
{
if (dc)
delete dc;
delete dc;
return false;
}