diff --git a/src/univ/listbox.cpp b/src/univ/listbox.cpp index f0f783992a..9a519bcc22 100644 --- a/src/univ/listbox.cpp +++ b/src/univ/listbox.cpp @@ -127,6 +127,8 @@ bool wxListBox::Create(wxWindow *parent, wxListBox::~wxListBox() { + // call this just to free the client data -- and avoid leaking memory + DoClear(); } // ----------------------------------------------------------------------------