fix for [ 1044879 ] wxMSW 2.5.3: memleaks in listctrl.cpp and bug in listctrl sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -656,10 +656,12 @@ void MyFrame::OnDeleteAll(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
wxStopWatch sw;
|
||||
|
||||
size_t itemCount = m_listCtrl->GetItemCount();
|
||||
|
||||
m_listCtrl->DeleteAllItems();
|
||||
|
||||
m_logWindow->WriteText(wxString::Format(_T("Deleting %d items took %ld ms\n"),
|
||||
m_listCtrl->GetItemCount(),
|
||||
itemCount,
|
||||
sw.Time()));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user