]> git.saurik.com Git - wxWidgets.git/commitdiff
don't leak client data (1st part of patch 646145)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Dec 2002 20:57:56 +0000 (20:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Dec 2002 20:57:56 +0000 (20:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/listbox.cpp

index f0f783992aded7340d6910ae1737ecb7954881c0..9a519bcc22ddbbda5429e8edfb7eb4d5d28533c5 100644 (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();
 }
 
 // ----------------------------------------------------------------------------