Artifact
4bc0ebec1c47a07400e3ea9aa17f351cb986cfa04c20a901156083e60ba56f2d:
Attachment "0502c1ee.diff" to
ticket [0502c1ee]
added by
chrstphrchvz
2023-07-10 13:44:42.
diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c
--- macosx/tkMacOSXMenu.c
+++ macosx/tkMacOSXMenu.c
@@ -807,8 +807,9 @@
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 &&
(mePtr->entryFlags & ENTRY_SELECTED) ? NSOnState : NSOffState)];