diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-10-29 12:05:03 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2009-10-29 12:05:03 +0000 |
commit | e1cbd4dc301f0f7e0a0fd7616a958bfaeb615b67 (patch) | |
tree | 88ac9898986612d4fbab6ba67079ae6337d84267 /AppKit | |
parent | 24322f87faace9ffabe0787dbfb27eeeea9aed31 (diff) |
[Author: iwade]
Fix some garbage collecion related leaks.
Discovered in a run of the Clang Static Analyzer:
http://clang-analyzer.llvm.org/
R=dmaclach
APPROVED=dmaclach
DELTA=17 (11 added, 0 deleted, 6 changed)
Diffstat (limited to 'AppKit')
-rw-r--r-- | AppKit/GTMNSImage+SearchCache.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AppKit/GTMNSImage+SearchCache.m b/AppKit/GTMNSImage+SearchCache.m index 99c2af4..037e0c8 100644 --- a/AppKit/GTMNSImage+SearchCache.m +++ b/AppKit/GTMNSImage+SearchCache.m @@ -81,7 +81,7 @@ NSString *path = [[NSBundle bundleWithPath:[url path]] pathForImageResource:iconName]; if (path) - image = [[NSImage alloc] initWithContentsOfFile:path]; + image = [[[NSImage alloc] initWithContentsOfFile:path] autorelease]; } } |