Ryujinx.Tests.Unicorn: Implement IDisposable (#3794)
Dispose unicorn when done
This commit is contained in:
parent
9b06ee7736
commit
eafadf10c7
4 changed files with 48 additions and 4 deletions
|
@ -80,6 +80,12 @@ namespace Ryujinx.Tests.Cpu
|
|||
[TearDown]
|
||||
public void Teardown()
|
||||
{
|
||||
if (_unicornAvailable)
|
||||
{
|
||||
_unicornEmu.Dispose();
|
||||
_unicornEmu = null;
|
||||
}
|
||||
|
||||
_memory.DecrementReferenceCount();
|
||||
_context.Dispose();
|
||||
_ram.Dispose();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue