From 689c48297e0761c02cbaa6836f902d31ccbd50d0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 25 Nov 2003 23:50:10 +0000 Subject: [PATCH] fixed memory leak (m_selection wasn't deleted) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/htmlwin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ) { -- 2.45.2