X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03647350fc7cd141953c72e0284e928847d30f44..eea4d01c65f9b29baa1193db762b4c6b8144af24:/src/osx/printdlg_osx.cpp?ds=sidebyside diff --git a/src/osx/printdlg_osx.cpp b/src/osx/printdlg_osx.cpp index c0edeccc56..5d8e99c15e 100644 --- a/src/osx/printdlg_osx.cpp +++ b/src/osx/printdlg_osx.cpp @@ -4,7 +4,7 @@ // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 -// RCS-ID: $Id: printdlg.cpp 58164 2009-01-17 08:46:00Z SC $ +// RCS-ID: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -67,10 +67,9 @@ bool wxMacPrintDialog::Create( wxWindow *p, wxPrintDialogData *data ) wxMacPrintDialog::~wxMacPrintDialog() { - if (m_destroyDC && m_printerDC) + if (m_destroyDC) { - delete m_printerDC; - m_printerDC = NULL; + wxDELETE(m_printerDC); } }