]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed memory bug
authorJulian Smart <julian@anthemion.co.uk>
Wed, 18 Oct 2000 17:00:01 +0000 (17:00 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 18 Oct 2000 17:00:01 +0000 (17:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/html/helpdata.h

index 906d12b13b53e20d686035386dd21e575313a77e..e5b96e3965236842df61e4e791529a0fc0d6a4e1 100644 (file)
@@ -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