diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 21db98eba5..5f249c1888 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -201,7 +201,9 @@ wxHtmlWindow::~wxHtmlWindow() #endif // wxUSE_CLIPBOARD HistoryClear(); - if (m_Cell) delete m_Cell; + delete m_selection; + + delete m_Cell; if ( m_Processors ) {