Remove erroneous unmanaged cleanup of managed code

`loadYamlFile` calls `OpenManagedCFile` which handles closing the file-handle used. Thus, closing the file-handle outside the API call to `OpenManagedCFile` is not necessary.
This commit is contained in:
Odin Vex 2022-04-05 09:26:32 +00:00 committed by refractionpcsx2
parent e170e9281d
commit 059f58803c
1 changed files with 0 additions and 1 deletions

View File

@ -65,7 +65,6 @@ std::optional<ryml::Tree> loadYamlFile(const wxString& filePath)
return std::nullopt;
}
std::optional<std::string> buffer = FileSystem::ReadFileToString(file.get());
std::fclose(file.get());
if (!buffer.has_value())
{
return std::nullopt;