fix return value to be autoreleased

This commit is contained in:
rfm 2024-06-12 13:54:10 +01:00
parent a4b661d633
commit c9af996377

View file

@ -936,7 +936,7 @@ static gs_mutex_t classLock = GS_MUTEX_INIT_STATIC;
NSMutableArray *urls;
paths = NSSearchPathForDirectoriesInDomains(directory, domain, YES);
urls = [[NSMutableArray alloc] initWithCapacity: [paths count]];
urls = [NSMutableArray arrayWithCapacity: [paths count]];
FOR_IN(NSString*, path, paths)
[urls addObject: [NSURL fileURLWithPath: path]];
END_FOR_IN(paths)