From d00b880a793b5041add99065021f75d4fb788f50 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 6 Dec 2002 20:57:56 +0000 Subject: [PATCH] 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 --- src/univ/listbox.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); } // ---------------------------------------------------------------------------- -- 2.50.0