From: Vadim Zeitlin Date: Fri, 6 Dec 2002 20:57:56 +0000 (+0000) Subject: don't leak client data (1st part of patch 646145) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d00b880a793b5041add99065021f75d4fb788f50 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 --- 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(); } // ----------------------------------------------------------------------------