X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c5b628eeed01b18ef369c55ea01b568eda3d73c..f0b22b4a039b5797b94ecde35e2b67f6716c9e84:/src/html/htmprint.cpp diff --git a/src/html/htmprint.cpp b/src/html/htmprint.cpp index 811147e71f..4000a2e719 100644 --- a/src/html/htmprint.cpp +++ b/src/html/htmprint.cpp @@ -471,7 +471,9 @@ bool wxHtmlEasyPrinting::PrintFile(const wxString &htmlfile) { wxHtmlPrintout *p = CreatePrintout(); p->SetHtmlFile(htmlfile); - return DoPrint(p); + bool ret = DoPrint(p); + delete p; + return ret; } @@ -480,7 +482,9 @@ bool wxHtmlEasyPrinting::PrintText(const wxString &htmltext, const wxString &bas { wxHtmlPrintout *p = CreatePrintout(); p->SetHtmlText(htmltext, basepath, TRUE); - return DoPrint(p); + bool ret = DoPrint(p); + delete p; + return ret; }