]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/themes/win32.cpp
Don't call a function that might do drawing when setting a null image list
[wxWidgets.git] / src / univ / themes / win32.cpp
index 4f02fc9394e34d3a52c21ee3b8a3db8944054a91..ccf87bc3ff467184d2f05af90bad77e2a56b1dfd 100644 (file)
@@ -1176,6 +1176,7 @@ wxWin32Theme::wxWin32Theme()
     m_scheme = NULL;
     m_renderer = NULL;
     m_handlerDefault = NULL;
+    m_artProvider = NULL;
 }
 
 wxWin32Theme::~wxWin32Theme()
@@ -1191,6 +1192,7 @@ wxWin32Theme::~wxWin32Theme()
 
     delete m_renderer;
     delete m_scheme;
+    wxArtProvider::RemoveProvider(m_artProvider);
 }
 
 wxRenderer *wxWin32Theme::GetRenderer()