Dispose of stream when creating config

This commit is contained in:
Matt Nadareski
2024-06-24 11:43:22 -04:00
parent f150483e84
commit 5af3aad68a
2 changed files with 2 additions and 1 deletions

View File

@@ -21,6 +21,7 @@
- Save default config values for CLI
- Allow custom parameters for CLI
- Load options before anything else
- Dispose of stream when creating config
### 3.2.0 (2024-06-20)

View File

@@ -429,7 +429,7 @@ namespace MPF.Frontend.Tools
{
if (!File.Exists(ConfigurationPath))
{
_ = File.Create(ConfigurationPath);
File.Create(ConfigurationPath).Dispose();
return new Options();
}