Skip to content

Commit

Permalink
cocoa: Fixed incorrect autorelease, noted by static analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 28, 2016
1 parent c9bfcbd commit 5bcf1d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -135,7 +135,7 @@ - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
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];
Expand Down

0 comments on commit 5bcf1d2

Please sign in to comment.