From: Václav Slavík Date: Tue, 22 Aug 2000 21:56:52 +0000 (+0000) Subject: fixed bug in wxListCtrl::SetItem (forgot to delete previous attribute from m_attrs) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/525fd27d2436693207bd2e7c01ed0c0c9019de14 fixed bug in wxListCtrl::SetItem (forgot to delete previous attribute from m_attrs) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 8634a74f8a..1481cda78c 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -632,7 +632,7 @@ bool wxListCtrl::SetItem(wxListItem& info) // check whether it has any custom attributes if ( info.HasAttributes() ) { - m_attrs.Delete(item.iItem); // remove existing attributes + delete m_attrs.Delete(item.iItem); // remove existing attributes m_attrs.Put(item.iItem, (wxObject *)new wxListItemAttr(*info.GetAttributes())); m_hasAnyAttr = TRUE;