X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32eda62d164dc93b03fbd26dbf9b0f130632a40f..dd71bfb9921430755a885117cc6c9843c62dafda:/samples/html/printing/printing.cpp diff --git a/samples/html/printing/printing.cpp b/samples/html/printing/printing.cpp index db862e7b45..c6390fc413 100644 --- a/samples/html/printing/printing.cpp +++ b/samples/html/printing/printing.cpp @@ -223,8 +223,7 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) // frame destructor MyFrame::~MyFrame() { - delete m_Prn; - m_Prn = (wxHtmlEasyPrinting *) NULL; + wxDELETE(m_Prn); }