]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/artprov.cpp
added version checking to the renderers
[wxWidgets.git] / src / common / artprov.cpp
index 74f8f798e76e5930e49b559ae13966e438e6aae8..e4c829757bbdd5a38d95583b93ccab8cb587afb2 100644 (file)
@@ -13,7 +13,7 @@
 // headers
 // ---------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "artprov.h"
 #endif
 
@@ -148,6 +148,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL;
 
 /*static*/ void wxArtProvider::CleanUpProviders()
 {
+    WX_CLEAR_LIST(wxArtProvidersList, *sm_providers);
     wxDELETE(sm_providers);
     wxDELETE(sm_cache);
 }