// wxWin macros
// ----------------------------------------------------------------------------
-#if !USE_SHARED_LIBRARIES
IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxCursorBase)
-#endif
// ----------------------------------------------------------------------------
// 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;
+ }
}
// ----------------------------------------------------------------------------