]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/listctrl.cpp
Preserve wxSlider value when changing its range in wxOSX too.
[wxWidgets.git] / src / os2 / listctrl.cpp
index 062a528006c8b96673d23fdd0bc63e55ae91b069..57e13fb4e0d42c38d8d88817090c8681edf400d6 100644 (file)
@@ -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)