fixes for icon-inherits-from-bitmap mode

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-12-03 14:50:12 +00:00
parent 72e7876ba5
commit 032af30f52
2 changed files with 11 additions and 2 deletions

View File

@ -67,8 +67,13 @@ wxCursorRefData::wxCursorRefData()
void wxCursorRefData::Free()
{
if ( m_hCursor && m_destroyCursor )
::DestroyCursor((HCURSOR)m_hCursor);
if ( m_hCursor )
{
if ( m_destroyCursor )
::DestroyCursor((HCURSOR)m_hCursor);
m_hCursor = 0;
}
}
// ----------------------------------------------------------------------------

View File

@ -62,7 +62,11 @@
void wxIconRefData::Free()
{
if ( m_hIcon )
{
::DestroyIcon((HICON) m_hIcon);
m_hIcon = 0;
}
}
// ----------------------------------------------------------------------------