X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d0512bd8f4bdf548e0385b21f54f14b68b4b174..cbf97a6cd655d44e6f7b1ffaf35be0c392532ae7:/src/msw/icon.cpp diff --git a/src/msw/icon.cpp b/src/msw/icon.cpp index 0c2187db94..00b0741ab7 100644 --- a/src/msw/icon.cpp +++ b/src/msw/icon.cpp @@ -47,9 +47,7 @@ // wxWin macros // ---------------------------------------------------------------------------- -#if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxIconBase) -#endif // ============================================================================ // implementation @@ -62,7 +60,11 @@ void wxIconRefData::Free() { if ( m_hIcon ) + { ::DestroyIcon((HICON) m_hIcon); + + m_hIcon = 0; + } } // ----------------------------------------------------------------------------