summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXCursor.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-03-21 00:50:16 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-03-21 00:50:16 (GMT)
commit9787a9f42d575fd80d370323e6fe37290f5609cd (patch)
tree523d52d04168fdbaa26d257a98579ba2a5e37713 /macosx/tkMacOSXCursor.c
parent9df910230823bd6be37562f8f344258c54add11f (diff)
downloadtk-9787a9f42d575fd80d370323e6fe37290f5609cd.zip
tk-9787a9f42d575fd80d370323e6fe37290f5609cd.tar.gz
tk-9787a9f42d575fd80d370323e6fe37290f5609cd.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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/tkMacOSXCursor.c b/macosx/tkMacOSXCursor.c
index c9815c1..08dec9e 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;
}
/*
@@ -452,7 +452,8 @@ TkpFreeCursor(
{
TkMacOSXCursor *macCursorPtr = (TkMacOSXCursor *) cursorPtr;
- TkMacOSXMakeCollectableAndRelease(macCursorPtr->macCursor);
+ [macCursorPtr->macCursor release];
+ macCursorPtr->macCursor = NULL;
if (macCursorPtr == gCurrentCursor) {
gCurrentCursor = NULL;
}