2
0
Эх сурвалжийг харах

cocoa: Fixed incorrect autorelease, noted by static analysis.

Ryan C. Gordon 9 жил өмнө
parent
commit
5bcf1d256b

+ 1 - 1
src/video/cocoa/SDL_cocoawindow.m

@@ -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];