// wxWin macros
// ----------------------------------------------------------------------------
-#if !USE_SHARED_LIBRARIES
IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxIconBase)
-#endif
// ============================================================================
// implementation
void wxIconRefData::Free()
{
if ( m_hIcon )
+ {
::DestroyIcon((HICON) m_hIcon);
+
+ m_hIcon = 0;
+ }
}
// ----------------------------------------------------------------------------