diff --git a/include/wx/html/htmlpars.h b/include/wx/html/htmlpars.h index acf972ff42..e234456d43 100644 --- a/include/wx/html/htmlpars.h +++ b/include/wx/html/htmlpars.h @@ -89,15 +89,6 @@ class WXDLLEXPORT wxHtmlParser : public wxObject wxString* GetSource() {return &m_Source;} - virtual wxList* GetTempData() {return NULL;} - // this method returns list of wxObjects that represents - // all data allocated by the parser. These can't be freeded - // by destructor because they must be valid as long as - // GetProduct's return value is valid - the caller must - // explicitly call delete MyParser -> GetTempData() to free - // the memory - // (this method always sets the list to delete its contents) - protected: virtual void AddText(const char* txt) = 0; diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 380ed40818..76e0c45e64 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -69,9 +69,6 @@ wxHtmlWindow::~wxHtmlWindow() if (m_Cell) delete m_Cell; - wxList *parser_data = m_Parser -> GetTempData(); - if (parser_data) delete parser_data; - delete m_Parser; delete m_FS; }