mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 07:28:30 +00:00
cocoa: Fixed incorrect autorelease, noted by static analysis.
This commit is contained in:
@@ -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