Dispose disks in Nyma cores (#3751)
This commit is contained in:
parent
c57657bbd4
commit
d459aaaf6f
|
@ -334,5 +334,17 @@ namespace BizHawk.Emulation.Cores.Waterbox
|
||||||
|
|
||||||
private IntPtr _frameThreadPtr;
|
private IntPtr _frameThreadPtr;
|
||||||
private Action _frameThreadStart;
|
private Action _frameThreadStart;
|
||||||
|
|
||||||
|
public override void Dispose()
|
||||||
|
{
|
||||||
|
if (_disks != null)
|
||||||
|
{
|
||||||
|
foreach (var disk in _disks)
|
||||||
|
{
|
||||||
|
disk.Dispose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
base.Dispose();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue