Iterate over IEnumerable before disposing

This commit is contained in:
Bond-009 2019-04-30 22:18:40 +02:00
parent 7c4cb5ec58
commit 682432f55a
2 changed files with 2 additions and 2 deletions

View File

@ -336,7 +336,7 @@ namespace MediaBrowser.Providers.Music
}
using (var subReader = reader.ReadSubtree())
{
return ParseReleaseList(subReader);
return ParseReleaseList(subReader).ToList();
}
}
default:

View File

@ -110,7 +110,7 @@ namespace MediaBrowser.Providers.Music
}
using (var subReader = reader.ReadSubtree())
{
return ParseArtistList(subReader);
return ParseArtistList(subReader).ToList();
}
}
default: