X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/66a09d4776b8ae390d5aa51dbd678b694f2c81d6..28a663e68573f9637f1d9b9aafbaa192decf1644:/src/mac/printdlg.cpp diff --git a/src/mac/printdlg.cpp b/src/mac/printdlg.cpp index adb620e76f..ec13b97455 100644 --- a/src/mac/printdlg.cpp +++ b/src/mac/printdlg.cpp @@ -71,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()