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:
Vadim Zeitlin 2003-03-02 23:24:28 +00:00
parent 1265e13d17
commit c5ef41d3b4

View File

@ -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()