Skip to content

Commit

Permalink
Dispose of stream when creating config
Browse files Browse the repository at this point in the history
  • Loading branch information
mnadareski committed Jun 24, 2024
1 parent f150483 commit 5af3aad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion MPF.Frontend/Tools/OptionsLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public static Options LoadFromConfig()
{
if (!File.Exists(ConfigurationPath))
{
_ = File.Create(ConfigurationPath);
File.Create(ConfigurationPath).Dispose();
return new Options();
}

Expand Down

0 comments on commit 5af3aad

Please sign in to comment.