]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/printdlg.cpp
added error code for better debugging
[wxWidgets.git] / src / mac / carbon / printdlg.cpp
index adb620e76f4c602ef12da3f168ad81b07edba336..ec13b9745533f2553212d8034d8396b6ebe47442 100644 (file)
@@ -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()