m_width = 32;
m_height = 32;
- m_destroyCursor = FALSE;
+ m_destroyCursor = TRUE;
}
void wxCursorRefData::Free()
#else
refData->m_hCursor = (WXHCURSOR) LoadCursor(wxGetInstance(), cursor_file);
#endif
- refData->m_destroyCursor = FALSE;
}
else if (flags == wxBITMAP_TYPE_CUR)
{
break;
}
#endif
+
+ // no need to destroy the stock cursors
+ refData->m_destroyCursor = FALSE;
}
wxCursor::~wxCursor()