From 107d6551c09f1bd2f11b0cab9840e5c047755921 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 26 Oct 2016 09:32:50 -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 b2ae25fc6ae59cfd95f15b7401b63ebb06c72e02. --- 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 2c09d5b86c..008b30fbb7 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -291,7 +291,7 @@ wxCursor *wxHtmlWindow::ms_cursorDefault = 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);