From f710f382d9af23717650493630a4dadd8deba3db Mon Sep 17 00:00:00 2001 From: Lukhnos Liu Date: Mon, 10 Sep 2012 23:12:09 -0700 Subject: [PATCH] Fix leak. --- Source/Installer/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Installer/AppDelegate.m b/Source/Installer/AppDelegate.m index 2abde5b2..51dded67 100644 --- a/Source/Installer/AppDelegate.m +++ b/Source/Installer/AppDelegate.m @@ -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];