X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..1c7ce073474469e25aedb6c203fdb6f549d18870:/src/os2/listctrl.cpp diff --git a/src/os2/listctrl.cpp b/src/os2/listctrl.cpp index 9439f87459..57e13fb4e0 100644 --- a/src/os2/listctrl.cpp +++ b/src/os2/listctrl.cpp @@ -140,8 +140,7 @@ public: ~CListItemInternalData() { - delete m_pAttr; - m_pAttr = NULL; + wxDELETE(m_pAttr); } wxListItemAttr* m_pAttr; @@ -965,8 +964,7 @@ wxListCtrl::~wxListCtrl () { m_pTextCtrl->SetHWND(0); m_pTextCtrl->UnsubclassWin(); - delete m_pTextCtrl; - m_pTextCtrl = NULL; + wxDELETE(m_pTextCtrl); } if (m_bOwnsImageListNormal) @@ -1464,7 +1462,7 @@ bool wxListCtrl::SetItemImage ( bool wxListCtrl::SetItemColumnImage ( long lItem , long lColumn -, int nImage +, int nImage) { wxListItem vInfo;