summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-07-15 09:05:31 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-07-15 09:05:31 (GMT)
commit0cffc23bd981a2cd292885cbcc8d04e898783bcb (patch)
tree323ff7c1bdea8ad425077f5be014a149a056e379 /macosx
parentf634601ba14442f8da94299fd316d031d1c810a4 (diff)
parentc4face7a6db13dc6607f81f9cbc868568f1fd964 (diff)
downloadtk-0cffc23bd981a2cd292885cbcc8d04e898783bcb.zip
tk-0cffc23bd981a2cd292885cbcc8d04e898783bcb.tar.gz
tk-0cffc23bd981a2cd292885cbcc8d04e898783bcb.tar.bz2
Fix [0502c1eef5]: Aqua: fix NSAttributedString leak in TkpConfigureMenuEntry(). Patch from Christopher Chavez.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXMenu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
index 0a71cb7..f91dc89 100644
--- a/macosx/tkMacOSXMenu.c
+++ b/macosx/tkMacOSXMenu.c
@@ -814,6 +814,7 @@ TkpConfigureMenuEntry(
attributedTitle = [[NSAttributedString alloc] initWithString:title
attributes:attributes];
[menuItem setAttributedTitle:attributedTitle];
+ [attributedTitle release];
[menuItem setEnabled:(mePtr->state != ENTRY_DISABLED)];
[menuItem setState:((mePtr->type == CHECK_BUTTON_ENTRY ||
mePtr->type == RADIO_BUTTON_ENTRY) && mePtr->indicatorOn &&