cocoa: Fixed incorrect autorelease, noted by static analysis.
This commit is contained in:
1 parent
c9bfcbde6e
commit
5bcf1d256b
1 file changed
+1
-1
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user