]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed memory leak (m_selection wasn't deleted)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 Nov 2003 23:50:10 +0000 (23:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 Nov 2003 23:50:10 +0000 (23:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlwin.cpp

index 21db98eba5cce683bfc85730d3e9110d08f72cd7..5f249c18889e0fc525828e6abb0a3a581922cbbc 100644 (file)
@@ -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 )
     {