From a68bc9bd72cefdb5c477885ff4a1277d77075fa9 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 26 Oct 2016 08:16:59 -0700 Subject: [PATCH] Revert "WX_CLEAR_LIST in wxHtmlWindow::CleanUpStatics is hard-crashing" The issue was an incorrect ownership transfer in wxPython. This reverts commit 22f9852519b008ecf658f8736787151537bf1a09. --- src/html/htmlwin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index c8e716a58c..32bfcced27 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -290,7 +290,7 @@ wxCursor *wxHtmlWindow::ms_cursorText = NULL; void wxHtmlWindow::CleanUpStatics() { wxDELETE(m_DefaultFilter); - m_Filters.Clear(); + WX_CLEAR_LIST(wxList, m_Filters); if (m_GlobalProcessors) WX_CLEAR_LIST(wxHtmlProcessorList, *m_GlobalProcessors); wxDELETE(m_GlobalProcessors);