don't leak client data (1st part of patch 646145)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2002-12-06 20:57:56 +00:00
parent 9b798c66c7
commit d00b880a79

View File

@ -127,6 +127,8 @@ bool wxListBox::Create(wxWindow *parent,
wxListBox::~wxListBox()
{
// call this just to free the client data -- and avoid leaking memory
DoClear();
}
// ----------------------------------------------------------------------------