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)
{
refData->m_hCursor = (WXHCURSOR) LoadCursor((HINSTANCE) NULL, IDC_ARROW);
break;
}
+
+ // no need to destroy the stock cursors
+ // TODO: check this
+ //m_refData->m_destroyCursor = FALSE;
#endif
}