Ensure the correct use of disposable parsed documents

This commit is contained in:
Bogdan
2023-10-04 05:36:39 +03:00
parent 93ec6cf89b
commit 19a196e2c7
34 changed files with 63 additions and 63 deletions
@@ -291,7 +291,7 @@ namespace NzbDrone.Core.Indexers.Definitions
var torrentInfos = new List<ReleaseInfo>();
var parser = new HtmlParser();
var doc = parser.ParseDocument(indexerResponse.Content);
using var doc = parser.ParseDocument(indexerResponse.Content);
var rows = doc.QuerySelectorAll("table[id=\"torrents\"] > tbody > tr");
foreach (var row in rows)