Fix leak.
This commit is contained in:
parent
029e1ee70b
commit
f710f382d9
|
@ -52,7 +52,7 @@ static NSString *const kTargetFullBinPartialPath = @"~/Library/Input Methods/McB
|
||||||
[[self window] orderFront:self];
|
[[self window] orderFront:self];
|
||||||
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
|
||||||
|
|
||||||
NSAttributedString *attrStr = [[NSAttributedString alloc] initWithRTF:[NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"License" ofType:@"rtf"]] documentAttributes:NULL];
|
NSAttributedString *attrStr = [[[NSAttributedString alloc] initWithRTF:[NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"License" ofType:@"rtf"]] documentAttributes:NULL] autorelease];
|
||||||
|
|
||||||
[[self.textView textStorage] setAttributedString:attrStr];
|
[[self.textView textStorage] setAttributedString:attrStr];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue