fixed memory leak (patch 696164)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1265e13d17
commit
c5ef41d3b4
@ -1223,6 +1223,12 @@ wxFileDialog::~wxFileDialog()
|
||||
wxConfig::Get()->Write(wxT("/wxWindows/wxFileDialog/ShowHidden"),
|
||||
ms_lastShowHidden);
|
||||
}
|
||||
|
||||
const int count = m_choice->GetCount();
|
||||
for ( int i = 0; i < count; i++ )
|
||||
{
|
||||
delete (wxString *)m_choice->GetClientData(i);
|
||||
}
|
||||
}
|
||||
|
||||
int wxFileDialog::ShowModal()
|
||||
|
Loading…
Reference in New Issue
Block a user