From b70fad26a6351ed8ac936c7f3dc40e0709daefae Mon Sep 17 00:00:00 2001 From: williameveretteggplant <44709277+williameveretteggplant@users.noreply.github.com> Date: Mon, 14 Feb 2022 15:35:37 -0700 Subject: [PATCH] Use autorelease pool macros --- Source/NSTextView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/NSTextView.m b/Source/NSTextView.m index b53903e53..f6f7a6735 100644 --- a/Source/NSTextView.m +++ b/Source/NSTextView.m @@ -1172,7 +1172,7 @@ to this method from the text container or layout manager. - (void) setTextContainer: (NSTextContainer *)container { - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + ENTER_POOL NSUInteger i, c; NSArray *tcs; @@ -1238,7 +1238,7 @@ to this method from the text container or layout manager. [self _updateMultipleTextViews]; - [pool drain]; + LEAVE_POOL } - (void) replaceTextContainer: (NSTextContainer *)newContainer