Dispose disks in Nyma cores (#3751)

This commit is contained in:
kalimag 2023-08-19 23:27:05 +02:00 committed by GitHub
parent c57657bbd4
commit d459aaaf6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -334,5 +334,17 @@ namespace BizHawk.Emulation.Cores.Waterbox
private IntPtr _frameThreadPtr;
private Action _frameThreadStart;
public override void Dispose()
{
if (_disks != null)
{
foreach (var disk in _disks)
{
disk.Dispose();
}
}
base.Dispose();
}
}
}