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.
parent
0d12f9e4e3
commit
aaf320a96c
|
@ -14,7 +14,9 @@
|
|||
|
||||
+ (NSArray *) urlsForContainerURL:(NSURL *)url
|
||||
{
|
||||
@autoreleasepool {
|
||||
return [[PluginController sharedPluginController] urlsForContainerURL:url];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -13,7 +13,9 @@
|
|||
|
||||
+ (NSDictionary *)metadataForURL:(NSURL *)url
|
||||
{
|
||||
@autoreleasepool {
|
||||
return [[PluginController sharedPluginController] metadataForURL:url];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -15,7 +15,9 @@
|
|||
|
||||
+ (NSDictionary *)propertiesForURL:(NSURL *)url
|
||||
{
|
||||
@autoreleasepool {
|
||||
return [[PluginController sharedPluginController] propertiesForURL:url];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue