aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <nyamatongwe@gmail.com>2013-01-08 17:34:56 +1100
committernyamatongwe <nyamatongwe@gmail.com>2013-01-08 17:34:56 +1100
commit3b3834974339ea1363da2aaf34ef2f4162616949 (patch)
tree165a0e4428352c3636349570c40fef88d3933293
parent2e6fa813b54954c27f39b88508175b2019885419 (diff)
downloadscintilla-mirror-3b3834974339ea1363da2aaf34ef2f4162616949.tar.gz
Fix memory leak.
-rw-r--r--cocoa/InfoBar.mm2
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.");