diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 15c7981c77..ae00662c74 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -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); }