cocoa: Fixed incorrect autorelease, noted by static analysis.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 28 Aug 2016 19:06:31 -0400
changeset 10289a64e365c1e38
parent 10288 d45b253d1174
child 10290 7abf50f798df
cocoa: Fixed incorrect autorelease, noted by static analysis.
src/video/cocoa/SDL_cocoawindow.m
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sun Aug 28 18:52:25 2016 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Aug 28 19:06:31 2016 -0400
     1.3 @@ -135,7 +135,7 @@
     1.4      NSArray *array = [pasteboard propertyListForType:@"NSFilenamesPboardType"];
     1.5  
     1.6      for (NSString *path in array) {
     1.7 -        NSURL *fileURL = [[NSURL fileURLWithPath:path] autorelease];
     1.8 +        NSURL *fileURL = [NSURL fileURLWithPath:path];
     1.9          NSNumber *isAlias = nil;
    1.10  
    1.11          [fileURL getResourceValue:&isAlias forKey:NSURLIsAliasFileKey error:nil];