Skip to content
Permalink
Browse files

cocoa: Fixed incorrect autorelease, noted by static analysis.

  • Loading branch information
icculus committed Aug 28, 2016
1 parent c9bfcbd commit 5bcf1d256b04f46c35b167af9543707f0c57de7a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/cocoa/SDL_cocoawindow.m
@@ -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];

0 comments on commit 5bcf1d2

Please sign in to comment.