]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/cursor.cpp
64bit fix for patch as well
[wxWidgets.git] / src / mac / carbon / cursor.cpp
index 34d1284ea5a63335443303369061f31d0d2ebd5a..cee91f767cb4cbf12e969b0e637aa48597fcb1f9 100644 (file)
@@ -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