]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/filedlgg.cpp
fix Alt-letter navigation with spin controls (bug 672974)
[wxWidgets.git] / src / generic / filedlgg.cpp
index 9de793bd62d651c517c49adae420bf098d1226fe..de203552250f84bcdcde357f9351a2633f3607c1 100644 (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()