Use autorelease pool macros

This commit is contained in:
williameveretteggplant 2022-02-14 15:35:37 -07:00 committed by GitHub
parent f37e93a440
commit b70fad26a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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