X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e7ced16e4c2ef7c88bdea84d78bb3c169a7bce3..43fd7dbd797dc3977376146b5d0751d974e089a1:/src/richtext/richtexthtml.cpp?ds=sidebyside diff --git a/src/richtext/richtexthtml.cpp b/src/richtext/richtexthtml.cpp index 3244486e09..c5df308797 100644 --- a/src/richtext/richtexthtml.cpp +++ b/src/richtext/richtexthtml.cpp @@ -85,8 +85,7 @@ bool wxRichTextHTMLHandler::DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& customEncoding = new wxCSConv(GetEncoding()); if (!customEncoding->IsOk()) { - delete customEncoding; - customEncoding = NULL; + wxDELETE(customEncoding); } } if (customEncoding)