X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3fe03e474dc460020c8b99759bee9ebd717ce21a..1483041dab88f43563c26405c1e2a41d6babe6a0:/src/msw/cursor.cpp?ds=sidebyside diff --git a/src/msw/cursor.cpp b/src/msw/cursor.cpp index 19063594b3..d84d6c2aa4 100644 --- a/src/msw/cursor.cpp +++ b/src/msw/cursor.cpp @@ -96,7 +96,7 @@ wxCursorRefData::wxCursorRefData() m_width = 32; m_height = 32; - m_destroyCursor = FALSE; + m_destroyCursor = TRUE; } void wxCursorRefData::Free() @@ -145,7 +145,6 @@ wxCursor::wxCursor(const wxString& cursor_file, #else refData->m_hCursor = (WXHCURSOR) LoadCursor(wxGetInstance(), cursor_file); #endif - refData->m_destroyCursor = FALSE; } else if (flags == wxBITMAP_TYPE_CUR) { @@ -316,6 +315,10 @@ wxCursor::wxCursor(int cursor_type) 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 }