From 0b52fe75ae0a5a4e237314d2b14cf629282a0423 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 8 Jan 2013 17:34:56 +1100 Subject: Fix memory leak. --- cocoa/InfoBar.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocoa/InfoBar.mm b/cocoa/InfoBar.mm index d3acf0097..5561bb059 100644 --- a/cocoa/InfoBar.mm +++ b/cocoa/InfoBar.mm @@ -88,7 +88,7 @@ NSBundle* bundle = [NSBundle bundleForClass: [InfoBar class]]; NSString* path = [bundle pathForResource: @"info_bar_bg" ofType: @"png" inDirectory: nil]; - mBackground = [[[NSImage alloc] initWithContentsOfFile: path] retain]; + mBackground = [[NSImage alloc] initWithContentsOfFile: path]; if (![mBackground isValid]) NSLog(@"Background image for info bar is invalid."); -- cgit v1.2.3