mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 14:25:34 +00:00
cocoa: Fixed incorrect autorelease, noted by static analysis.
This commit is contained in:
parent
c9bfcbde6e
commit
5bcf1d256b
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue