adium-1.4 3227:3cecc4e1d3be: Leak fix, thanks boredzo.
commits at adium.im
commits at adium.im
Tue Nov 9 01:52:24 UTC 2010
details: http://hg.adium.im/adium-1.4/rev/3cecc4e1d3be
revision: 3227:3cecc4e1d3be
author: Zachary West <zacw at adium.im>
date: Mon Nov 08 20:52:06 2010 -0500
Leak fix, thanks boredzo.
diffs (12 lines):
diff -r 1e9b2eff3984 -r 3cecc4e1d3be Frameworks/AIUtilities Framework/Source/AITextAttachmentAdditions.m
--- a/Frameworks/AIUtilities Framework/Source/AITextAttachmentAdditions.m Mon Nov 08 19:17:02 2010 -0600
+++ b/Frameworks/AIUtilities Framework/Source/AITextAttachmentAdditions.m Mon Nov 08 20:52:06 2010 -0500
@@ -12,7 +12,7 @@
- (BOOL)consideredImageForHFSType:(OSType)HFSTypeCode
pathExtension:(NSString *)pathExtension
{
- NSMutableArray *imageFileTypes = [[NSImage imageFileTypes] mutableCopy];
+ NSMutableArray *imageFileTypes = [[[NSImage imageFileTypes] mutableCopy] autorelease];
NSArray *removeFileTypes = [NSArray arrayWithObjects:@"pdf", @"PDF", @"psd", @"PSD", @"'PDF '", nil];
[imageFileTypes removeObjectsInArray:removeFileTypes];
More information about the commits
mailing list