]> git.saurik.com Git - wxWidgets.git/commitdiff
Build fix from FM (cascade from object.h changes making wxObjectRefData destructor...
authorKevin Hock <hockkn@yahoo.com>
Sat, 24 Feb 2007 02:49:41 +0000 (02:49 +0000)
committerKevin Hock <hockkn@yahoo.com>
Sat, 24 Feb 2007 02:49:41 +0000 (02:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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 ) ;
         {
             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
             CreateFromImage( image ) ;
         }
 #endif