fix deleting a frozen multi-line wxTextCtrl, see #13543

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2012-09-25 17:55:00 +00:00
parent 317dfa4b70
commit 6be306d4dc

View File

@ -613,6 +613,11 @@ void wxTextCtrl::Init()
wxTextCtrl::~wxTextCtrl()
{
// this is also done by wxWindowGTK dtor, but has to be done here so our
// DoThaw() override is called
while (IsFrozen())
Thaw();
if (m_anonymousMarkList)
g_slist_free(m_anonymousMarkList);
}