]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/iconbndl.cpp
Fix crash when using a proxy (m_protocol already gets cleaned up via CleanData())
[wxWidgets.git] / src / common / iconbndl.cpp
index 0661a1e7db4bd231e68dd334a8680bd575cdc5d7..2fa83445344bcd6240a2375831d198d818ad6422 100644 (file)
@@ -54,7 +54,11 @@ void wxIconBundle::DeleteIcons()
     m_icons.Empty();
 }
 
+#if wxUSE_IMAGE
 void wxIconBundle::AddIcon( const wxString& file, long type )
+#else
+void wxIconBundle::AddIcon( const wxString& WXUNUSED(file), long WXUNUSED(type) )
+#endif
 {
 #if wxUSE_IMAGE
     size_t count = wxImage::GetImageCount( file, type );