X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c5b628eeed01b18ef369c55ea01b568eda3d73c..4b7b750dd1ffd0d26b78728adb613b282a37c058:/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; }