From: Kevin Hock Date: Sat, 24 Feb 2007 02:49:41 +0000 (+0000) Subject: Build fix from FM (cascade from object.h changes making wxObjectRefData destructor... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/701bc6cab55bc341f7fdc79eb3d2b5392fc06e6d?ds=inline Build fix from FM (cascade from object.h changes making wxObjectRefData destructor private) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/cursor.cpp b/src/mac/carbon/cursor.cpp index 34d1284ea5..cee91f767c 100644 --- a/src/mac/carbon/cursor.cpp +++ b/src/mac/carbon/cursor.cpp @@ -501,7 +501,8 @@ wxCursor::wxCursor(const wxString& cursor_file, long flags, int hotSpotX, int ho { image.SetOption( wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX ) ; image.SetOption( wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY ) ; - delete m_refData ; + m_refData->DecRef() ; + m_refData = NULL ; CreateFromImage( image ) ; } #endif