X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c06de7d4c8f60c393d7f863e4e8d1fe80c9b80c0..a5655d37db9baabce654849fd66173f95f74e230:/src/os2/listctrl.cpp?ds=sidebyside 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)