Iterate over IEnumerable before disposing
This commit is contained in:
parent
7c4cb5ec58
commit
682432f55a
|
@ -336,7 +336,7 @@ namespace MediaBrowser.Providers.Music
|
|||
}
|
||||
using (var subReader = reader.ReadSubtree())
|
||||
{
|
||||
return ParseReleaseList(subReader);
|
||||
return ParseReleaseList(subReader).ToList();
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
|
|
@ -110,7 +110,7 @@ namespace MediaBrowser.Providers.Music
|
|||
}
|
||||
using (var subReader = reader.ReadSubtree())
|
||||
{
|
||||
return ParseArtistList(subReader);
|
||||
return ParseArtistList(subReader).ToList();
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue
Block a user