Correct leak in internal NSTextView method.

This commit is contained in:
ckegel 2024-02-09 16:14:34 -05:00
parent d6c5c1c8b3
commit bce2767698

View File

@ -164,6 +164,7 @@ NSString *const NSAllRomanInputSourcesLocaleIdentifier =
[_typingAttributes release];
_typingAttributes = typingAttributes;
[_defaultParagraphStyle release];
if ([typingAttributes objectForKey: NSParagraphStyleAttributeName]) {
_defaultParagraphStyle = [[typingAttributes
objectForKey: NSParagraphStyleAttributeName] copy];