adium 3495:da267665039b: Leak fix, thanks boredzo.
commits at adium.im
commits at adium.im
Tue Nov 9 01:52:50 UTC 2010
details: http://hg.adium.im/adium/rev/da267665039b
revision: 3495:da267665039b
author: Zachary West <zacw at adium.im>
date: Mon Nov 08 20:52:06 2010 -0500
Leak fix, thanks boredzo.
(transplanted from 3cecc4e1d3be9252f770c91d7ae3407830cd5de9)
diffs (12 lines):
diff -r 82156a7cb3d1 -r da267665039b 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