diff options
author | nyamatongwe <nyamatongwe@gmail.com> | 2013-01-08 17:34:56 +1100 |
---|---|---|
committer | nyamatongwe <nyamatongwe@gmail.com> | 2013-01-08 17:34:56 +1100 |
commit | 0b52fe75ae0a5a4e237314d2b14cf629282a0423 (patch) | |
tree | a718a536ab410f2a781ef089e1a7f51e49ac4921 | |
parent | 87b409a246c718bd4f8ce59d74145d6b00e252d2 (diff) | |
download | scintilla-mirror-0b52fe75ae0a5a4e237314d2b14cf629282a0423.tar.gz |
Fix memory leak.
-rw-r--r-- | cocoa/InfoBar.mm | 2 |
1 files changed, 1 insertions, 1 deletions
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."); |