Dispose the XML reader upon use

This commit is contained in:
Manuel Thalmann 2023-07-20 20:20:46 +02:00
parent 541e523f5c
commit c8d96b0711

View file

@ -18,6 +18,7 @@ function Install-Firefox {
$defaultAssociations.PreserveWhitespace = $true;
$reader = [System.Xml.XmlReader]::Create("$configFile", $readerSettings);
$defaultAssociations.Load($reader);
$reader.Dispose();
$extensions = @(
".htm",