diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 270dd47eab..8bc9ae2f26 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -395,8 +395,8 @@ wxListCtrl::~wxListCtrl() if ( m_textCtrl ) { - m_textCtrl->SetHWND(0); m_textCtrl->UnsubclassWin(); + m_textCtrl->SetHWND(0); delete m_textCtrl; m_textCtrl = NULL; }