]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dataview.cpp
Swap client data pointers in wxRearrangeList too.
[wxWidgets.git] / src / gtk / dataview.cpp
index bc3f27ad3571b9b8816b767e655b7bb8e4fe3655..dc98b83b9081535e699eff19fca5718c2fbe9ca1 100644 (file)
@@ -4349,11 +4349,7 @@ void wxDataViewCtrl::OnInternalIdle()
 
 bool wxDataViewCtrl::AssociateModel( wxDataViewModel *model )
 {
-    if ( m_internal )
-    {
-        delete m_internal;
-        m_internal = NULL;
-    }
+    wxDELETE(m_internal);
 
     if (!wxDataViewCtrlBase::AssociateModel( model ))
         return false;