mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-31 00:09:19 +01: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 New Issue
Block a user