cocoa: Fixed incorrect autorelease, noted by static analysis.

This commit is contained in:
Ryan C. Gordon 2016-08-28 19:06:31 -04:00
parent c9bfcbde6e
commit 5bcf1d256b

View file

@ -135,7 +135,7 @@
NSArray *array = [pasteboard propertyListForType:@"NSFilenamesPboardType"];
for (NSString *path in array) {
NSURL *fileURL = [[NSURL fileURLWithPath:path] autorelease];
NSURL *fileURL = [NSURL fileURLWithPath:path];
NSNumber *isAlias = nil;
[fileURL getResourceValue:&isAlias forKey:NSURLIsAliasFileKey error:nil];