X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3d3d3bf6cd84e44521a1617df5e38ed02c6fee2..fd76aa8d8ae3d8b702b7155ce15c1a927257f1fc:/src/mac/printdlg.cpp diff --git a/src/mac/printdlg.cpp b/src/mac/printdlg.cpp index 8f59b0d2e3..ec13b97455 100644 --- a/src/mac/printdlg.cpp +++ b/src/mac/printdlg.cpp @@ -18,6 +18,9 @@ #include "wx/dcprint.h" #include "wx/msgdlg.h" #include "wx/mac/uma.h" +#ifndef __DARWIN__ + #include "Printing.h" +#endif #if defined(TARGET_CARBON) && !defined(__DARWIN__) # if PM_USE_SESSION_APIS @@ -68,8 +71,10 @@ bool wxPrintDialog::Create(wxWindow *p, wxPrintDialogData* data) wxPrintDialog::~wxPrintDialog() { - if (m_destroyDC && m_printerDC) + if (m_destroyDC && m_printerDC) { delete m_printerDC; + m_printerDC = NULL; + } } int wxPrintDialog::ShowModal()