From 7cc231f5fd83766f457322e4d6f594848e191ea8 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 15 Mar 2021 22:06:14 -0700 Subject: [PATCH] Fix incorrectly disposing stream --- MPF.Library/Utilities/Drive.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MPF.Library/Utilities/Drive.cs b/MPF.Library/Utilities/Drive.cs index 63c0d38d..2995fda3 100644 --- a/MPF.Library/Utilities/Drive.cs +++ b/MPF.Library/Utilities/Drive.cs @@ -100,7 +100,7 @@ namespace MPF.Utilities } finally { - fs.Dispose(); + fs?.Dispose(); } } }