Fix memory leak of wxClientData when wxChoice is deleted

This commit is contained in:
Paul Cornett
2017-10-01 08:55:57 -07:00
parent 6a75c8f484
commit 591da5dcc4

View File

@@ -98,6 +98,7 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id,
wxChoice::~wxChoice() wxChoice::~wxChoice()
{ {
Clear();
delete m_strings; delete m_strings;
#ifdef __WXGTK3__ #ifdef __WXGTK3__