X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d0512bd8f4bdf548e0385b21f54f14b68b4b174..f4cc15cd73753bccecfc845328be3caf955b0864:/src/msw/icon.cpp diff --git a/src/msw/icon.cpp b/src/msw/icon.cpp index 0c2187db94..1ca4dafb12 100644 --- a/src/msw/icon.cpp +++ b/src/msw/icon.cpp @@ -62,7 +62,11 @@ void wxIconRefData::Free() { if ( m_hIcon ) + { ::DestroyIcon((HICON) m_hIcon); + + m_hIcon = 0; + } } // ----------------------------------------------------------------------------