Merge pull request #140 from williameveretteggplant/autoreleasepool_NSTextView

Fix memory leak in NSTextView
This commit is contained in:
Fred Kiefer 2022-02-14 23:42:08 +01:00 committed by GitHub
commit 7c1af2c874
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,7 @@
#import <Foundation/NSTimer.h>
#import <Foundation/NSUndoManager.h>
#import <Foundation/NSValue.h>
#import <Foundation/NSAutoreleasePool.h>
#import "AppKit/NSApplication.h"
#import "AppKit/NSAttributedString.h"
@ -1170,6 +1171,9 @@ to this method from the text container or layout manager.
*/
- (void) setTextContainer: (NSTextContainer *)container
{
ENTER_POOL
NSUInteger i, c;
NSArray *tcs;
NSTextView *other;
@ -1233,6 +1237,8 @@ to this method from the text container or layout manager.
_currentInsertionPointMovementDirection = 0;
[self _updateMultipleTextViews];
LEAVE_POOL
}
- (void) replaceTextContainer: (NSTextContainer *)newContainer