summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXFont.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-03-21 00:44:51 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-03-21 00:44:51 (GMT)
commitc76fcabd431431b1acfc9d4113781872fcc9fe9b (patch)
tree9c31348825d0133c3800fb172836376aabbb89e8 /macosx/tkMacOSXFont.c
parentc9882c7aeaae398fd75018012a712567852fd788 (diff)
downloadtk-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/tkMacOSXFont.c')
-rw-r--r--macosx/tkMacOSXFont.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c
index 4c8ac30..45a68f7 100644
--- a/macosx/tkMacOSXFont.c
+++ b/macosx/tkMacOSXFont.c
@@ -293,7 +293,7 @@ InitFont(
[NSNumber numberWithInt:fmPtr->fixed ? 0 : 1],
NSLigatureAttributeName,
[NSNumber numberWithDouble:kern], NSKernAttributeName, nil];
- fontPtr->nsAttributes = TkMacOSXMakeUncollectableAndRetain(nsAttributes);
+ fontPtr->nsAttributes = [nsAttributes retain];
#undef nCh
}
@@ -557,7 +557,8 @@ TkpDeleteFont(
{
MacFont *fontPtr = (MacFont *) tkFontPtr;
- TkMacOSXMakeCollectableAndRelease(fontPtr->nsAttributes);
+ [fontPtr->nsAttributes release];
+ fontPtr->nsAttributes = NULL;
CFRelease(fontPtr->nsFont); /* Either a CTFontRef or a CFRetained NSFont */
}