diff --git a/Sources/Jazz2/PreferencesCache.cpp b/Sources/Jazz2/PreferencesCache.cpp index 33603e68..10871ca8 100644 --- a/Sources/Jazz2/PreferencesCache.cpp +++ b/Sources/Jazz2/PreferencesCache.cpp @@ -126,7 +126,7 @@ namespace Jazz2 if (_configPath != localConfigPath) { auto configFileWritable = fs::Open(localConfigPath, FileAccessMode::Read | FileAccessMode::Write); if (configFileWritable->IsValid()) { - configFileWritable->Close(); + configFileWritable->Dispose(); _configPath = localConfigPath; } }