]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed bug in wxListCtrl::SetItem (forgot to delete previous attribute from m_attrs)
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 22 Aug 2000 21:56:52 +0000 (21:56 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 22 Aug 2000 21:56:52 +0000 (21:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index 8634a74f8a71098b018c0dd27282d9207c8c8b9f..1481cda78cbc3ebe12c8b2dfc4183344ab4d1f78 100644 (file)
@@ -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;