mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 18:15:35 +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"];
|
NSArray *array = [pasteboard propertyListForType:@"NSFilenamesPboardType"];
|
||||||
|
|
||||||
for (NSString *path in array) {
|
for (NSString *path in array) {
|
||||||
NSURL *fileURL = [[NSURL fileURLWithPath:path] autorelease];
|
NSURL *fileURL = [NSURL fileURLWithPath:path];
|
||||||
NSNumber *isAlias = nil;
|
NSNumber *isAlias = nil;
|
||||||
|
|
||||||
[fileURL getResourceValue:&isAlias forKey:NSURLIsAliasFileKey error:nil];
|
[fileURL getResourceValue:&isAlias forKey:NSURLIsAliasFileKey error:nil];
|
||||||
|
|
Loading…
Reference in a new issue