diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-03-21 00:44:51 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-03-21 00:44:51 (GMT) |
commit | c76fcabd431431b1acfc9d4113781872fcc9fe9b (patch) | |
tree | 9c31348825d0133c3800fb172836376aabbb89e8 /macosx/tkMacOSXCursor.c | |
parent | c9882c7aeaae398fd75018012a712567852fd788 (diff) | |
download | tk-c76fcabd431431b1acfc9d4113781872fcc9fe9b.zip tk-c76fcabd431431b1acfc9d4113781872fcc9fe9b.tar.gz tk-c76fcabd431431b1acfc9d4113781872fcc9fe9b.tar.bz2 |
Remove garbage collections calls as GC is no longer supported on OS X; thanks to Marc Culler for patch
Diffstat (limited to 'macosx/tkMacOSXCursor.c')
-rw-r--r-- | macosx/tkMacOSXCursor.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/tkMacOSXCursor.c b/macosx/tkMacOSXCursor.c index 53c2cd2..b6394b7 100644 --- a/macosx/tkMacOSXCursor.c +++ b/macosx/tkMacOSXCursor.c @@ -344,7 +344,7 @@ FindCursorByName( macCursor = [[NSCursor alloc] initWithImage:image hotSpot:hotSpot]; [image release]; } - macCursorPtr->macCursor = TkMacOSXMakeUncollectable(macCursor); + macCursorPtr->macCursor = macCursor; } /* @@ -454,7 +454,8 @@ TkpFreeCursor( { TkMacOSXCursor *macCursorPtr = (TkMacOSXCursor *) cursorPtr; - TkMacOSXMakeCollectableAndRelease(macCursorPtr->macCursor); + [macCursorPtr->macCursor release]; + macCursorPtr->macCursor = NULL; if (macCursorPtr == gCurrentCursor) { gCurrentCursor = NULL; } |