X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c06de7d4c8f60c393d7f863e4e8d1fe80c9b80c0..1c7ce073474469e25aedb6c203fdb6f549d18870:/src/os2/listctrl.cpp diff --git a/src/os2/listctrl.cpp b/src/os2/listctrl.cpp index 062a528006..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)