Dispose input files in DiscoHawk

This commit is contained in:
kalimag 2024-09-08 14:02:20 +02:00 committed by James Groom
parent b8b7fabd3a
commit 2d938ae61d
1 changed files with 1 additions and 1 deletions

View File

@ -257,12 +257,12 @@ namespace BizHawk.Emulation.DiscSystem
{
DiscMountJob job = new(inputPath, discInterface);
job.Run();
var disc = job.OUT_Disc;
if (job.OUT_ErrorLevel)
{
errorCallback(job.OUT_Log);
return false;
}
using var disc = job.OUT_Disc;
var (dir, baseName, _) = inputPath.SplitPathToDirFileAndExt();
var ext = hawkedFormat switch
{