From c8d96b0711fa11c7b511835a64dd77d4d9277811 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 20 Jul 2023 20:20:46 +0200 Subject: [PATCH] Dispose the XML reader upon use --- scripts/Windows/Software/Firefox/Install.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Windows/Software/Firefox/Install.ps1 b/scripts/Windows/Software/Firefox/Install.ps1 index 1c1ad563a..dc9c72a7c 100644 --- a/scripts/Windows/Software/Firefox/Install.ps1 +++ b/scripts/Windows/Software/Firefox/Install.ps1 @@ -18,6 +18,7 @@ function Install-Firefox { $defaultAssociations.PreserveWhitespace = $true; $reader = [System.Xml.XmlReader]::Create("$configFile", $readerSettings); $defaultAssociations.Load($reader); + $reader.Dispose(); $extensions = @( ".htm",