Merge pull request #1334 from Bond-009/musicbrainzfix

Iterate over IEnumerable before disposing
This commit is contained in:
Anthony Lavado 2019-04-30 16:56:54 -04:00 committed by GitHub
commit 4e681d25d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: