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
@@ -185,7 +185,7 @@ namespace NzbDrone.Core.Indexers.Definitions
var torrentInfos = new List<ReleaseInfo>();
var parser = new HtmlParser();
var dom = parser.ParseDocument(indexerResponse.Content);
using var dom = parser.ParseDocument(indexerResponse.Content);
foreach (var child in dom.QuerySelectorAll("#needseed"))
{
child.Remove();