summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXFont.c
diff options
context:
space:
mode:
authorculler <culler>2019-11-04 16:09:33 (GMT)
committerculler <culler>2019-11-04 16:09:33 (GMT)
commitd6ff843f2a143394e4c24f8502d9b1fdc17e6ebb (patch)
treea96d19fcb14d9a6fe61a44e82c2c3fc3b7e5eaa5 /macosx/tkMacOSXFont.c
parentfdc8805fa4d1297735e0bf313941ce3c40a9855c (diff)
downloadtk-d6ff843f2a143394e4c24f8502d9b1fdc17e6ebb.zip
tk-d6ff843f2a143394e4c24f8502d9b1fdc17e6ebb.tar.gz
tk-d6ff843f2a143394e4c24f8502d9b1fdc17e6ebb.tar.bz2
But we shouldn't call CFRelease on the font returned by [NSFont userFixedPitchFontOfSize:11]
Diffstat (limited to 'macosx/tkMacOSXFont.c')
-rw-r--r--macosx/tkMacOSXFont.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c
index 23a3cb8..bc1edff 100644
--- a/macosx/tkMacOSXFont.c
+++ b/macosx/tkMacOSXFont.c
@@ -407,7 +407,9 @@ TkpFontPkgInit(
#endif
if (nsFont) {
GetTkFontAttributesForNSFont(nsFont, &fa);
+#if 0
CFRelease(nsFont);
+#endif
} else {
fa.family = Tk_GetUid("Monaco");
fa.size = 11;