X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f890e2d474d26e47950717c802a3890497615484..844f90fba68fc9fbd3e839825d406839ee9fb9fb:/include/wx/html/helpdata.h diff --git a/include/wx/html/helpdata.h b/include/wx/html/helpdata.h index 906d12b13b..e5b96e3965 100644 --- a/include/wx/html/helpdata.h +++ b/include/wx/html/helpdata.h @@ -85,7 +85,7 @@ class WXDLLEXPORT wxSearchEngine : public wxObject { public: wxSearchEngine() : wxObject() {m_Keyword = NULL; } - ~wxSearchEngine() {if (m_Keyword) free(m_Keyword); } + ~wxSearchEngine() {if (m_Keyword) delete[] m_Keyword; } virtual void LookFor(const wxString& keyword, bool case_sensitive, bool whole_words_only); // Sets the keyword we will be searching for