]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/core/printmac.cpp
Fix selection corner cases in wxOSX wxComboBox.
[wxWidgets.git] / src / osx / core / printmac.cpp
index 85cc8c236850db1a5333d9482332c9b3c32385ee..4cf4f0cad6526f38650ba801c49c46d9afc659a0 100644 (file)
@@ -718,8 +718,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
     if (sm_abortWindow)
     {
         sm_abortWindow->Show(false);
-        delete sm_abortWindow;
-        sm_abortWindow = NULL;
+        wxDELETE(sm_abortWindow);
     }
 
     wxEndBusyCursor();