]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/printdlg.cpp
Updated Makefiles for all but Motif; there is either a lock or a CVS problem.
[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()