From: Vadim Zeitlin Date: Sat, 8 Dec 2007 21:09:20 +0000 (+0000) Subject: call Clear() in dtor: this is necessary at least to clean up client object data X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ad998d785c4aeb8bb3dfeaa8ae710f02f44852ba call Clear() in dtor: this is necessary at least to clean up client object data git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index fd421c8467..ae8535a88f 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -198,7 +198,7 @@ bool wxListBox::Create(wxWindow *parent, wxListBox::~wxListBox() { - Free(); + Clear(); } WXDWORD wxListBox::MSWGetStyle(long style, WXDWORD *exstyle) const