Add autorelease pools to various info loading functions, so that adding massive amounts of tracks to the playlist will not run out of file handles.

CQTexperiment
Chris Moeller 2016-06-29 22:14:13 -07:00
parent 0d12f9e4e3
commit aaf320a96c
3 changed files with 9 additions and 3 deletions

View File

@ -14,7 +14,9 @@
+ (NSArray *) urlsForContainerURL:(NSURL *)url
{
@autoreleasepool {
return [[PluginController sharedPluginController] urlsForContainerURL:url];
}
}
@end

View File

@ -13,7 +13,9 @@
+ (NSDictionary *)metadataForURL:(NSURL *)url
{
@autoreleasepool {
return [[PluginController sharedPluginController] metadataForURL:url];
}
}
@end

View File

@ -15,7 +15,9 @@
+ (NSDictionary *)propertiesForURL:(NSURL *)url
{
@autoreleasepool {
return [[PluginController sharedPluginController] propertiesForURL:url];
}
}
@end