Fix of memory leak with generic file dialog (Patch #1017938)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -823,6 +823,10 @@ void wxFileCtrl::SortItems(wxFileData::fileListFieldType field, bool foward)
|
|||||||
|
|
||||||
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user