mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
e170e9281d
commit
059f58803c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue