]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/dirctrlg.cpp
Fix DnD in generic wxDataViewCtrl when scrolled.
[wxWidgets.git] / src / generic / dirctrlg.cpp
index f071699517f2e3d366ddcfceb1086c33c6038c20..46b72cf08a1b86b096affc7d900e575ed47bcbc1 100644 (file)
@@ -1496,11 +1496,7 @@ public:
     bool OnInit() { wxTheFileIconsTable = new wxFileIconsTable; return true; }
     void OnExit()
     {
-        if (wxTheFileIconsTable)
-        {
-            delete wxTheFileIconsTable;
-            wxTheFileIconsTable = NULL;
-        }
+        wxDELETE(wxTheFileIconsTable);
     }
 };