git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28974
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxFileCtrl::~wxFileCtrl()
{
wxFileCtrl::~wxFileCtrl()
{
+ // Normally the data are freed via an EVT_LIST_DELETE_ALL_ITEMS event and
+ // wxFileCtrl::OnListDeleteAllItems. But if the event is generated after
+ // the destruction of the wxFileCtrl we need to free any data here:
+ FreeAllItemsData();
}
//-----------------------------------------------------------------------------
}
//-----------------------------------------------------------------------------