X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d0512bd8f4bdf548e0385b21f54f14b68b4b174..5ebdc86afc95a60fbeb0b2a71c38dd26c8a1b0b4:/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; + } } // ----------------------------------------------------------------------------