]> git.saurik.com Git - wxWidgets.git/commitdiff
call Clear() in dtor: this is necessary at least to clean up client object data
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 8 Dec 2007 21:09:20 +0000 (21:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 8 Dec 2007 21:09:20 +0000 (21:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listbox.cpp

index fd421c8467734f234e5e7e3d2f398b5603d2b68d..ae8535a88f56bc271b540938b4be47abd28b84df 100644 (file)
@@ -198,7 +198,7 @@ bool wxListBox::Create(wxWindow *parent,
 
 wxListBox::~wxListBox()
 {
-    Free();
+    Clear();
 }
 
 WXDWORD wxListBox::MSWGetStyle(long style, WXDWORD *exstyle) const