Fix leak.

This commit is contained in:
Lukhnos Liu 2012-09-10 23:12:09 -07:00
parent dceec1b12d
commit 0ee55ae581
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ static NSString *const kTargetFullBinPartialPath = @"~/Library/Input Methods/McB
[[self window] orderFront:self];
[[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];