X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/518ba66331d4e63376448802ce23fb7f7da82250..220aea7b09665fa1d28ba6361b9052599415e69a:/src/html/htmlwin.cpp?ds=sidebyside diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index 00be22276a..69ced30b42 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -181,6 +181,7 @@ void wxHtmlWindow::Init() #endif // wxUSE_CLIPBOARD m_backBuffer = NULL; m_eraseBgInOnPaint = false; + m_tmpSelFromCell = NULL; } bool wxHtmlWindow::Create(wxWindow *parent, wxWindowID id, @@ -271,6 +272,9 @@ bool wxHtmlWindow::SetPage(const wxString& source) wxDELETE(m_selection); + // we will soon delete all the cells, so clear pointers to them: + m_tmpSelFromCell = NULL; + // pass HTML through registered processors: if (m_Processors || m_GlobalProcessors) {