]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/artprov.cpp
Avoid crash when releasing the mouse in wxRibbonToolBar.
[wxWidgets.git] / src / common / artprov.cpp
index 3a4f56b04cfe9142345d0c85bc522e920f2c72c4..e8a50e9bea5ee5a8c9e56542ebcc74a14e95874b 100644 (file)
@@ -204,11 +204,8 @@ wxArtProvider::~wxArtProvider()
         while ( !sm_providers->empty() )
             delete *sm_providers->begin();
 
-        delete sm_providers;
-        sm_providers = NULL;
-
-        delete sm_cache;
-        sm_cache = NULL;
+        wxDELETE(sm_providers);
+        wxDELETE(sm_cache);
     }
 }