diff options
author | merry <git@mary.rs> | 2022-10-24 00:51:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-23 23:51:54 +0000 |
commit | eafadf10c7d8fe51ca6af11aadef64f5f6bcf8e0 (patch) | |
tree | 69dda4e2017a65a28b2b47d20f5bf9ca15fe2e93 /Ryujinx.Tests/Cpu/CpuTest.cs | |
parent | 9b06ee7736993494c9b7f730f22283edf8e550b7 (diff) |
Ryujinx.Tests.Unicorn: Implement IDisposable (#3794)1.1.326
Dispose unicorn when done
Diffstat (limited to 'Ryujinx.Tests/Cpu/CpuTest.cs')
-rw-r--r-- | Ryujinx.Tests/Cpu/CpuTest.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Ryujinx.Tests/Cpu/CpuTest.cs b/Ryujinx.Tests/Cpu/CpuTest.cs index 5fe43dec..f983a03f 100644 --- a/Ryujinx.Tests/Cpu/CpuTest.cs +++ b/Ryujinx.Tests/Cpu/CpuTest.cs @@ -80,6 +80,12 @@ namespace Ryujinx.Tests.Cpu [TearDown] public void Teardown() { + if (_unicornAvailable) + { + _unicornEmu.Dispose(); + _unicornEmu = null; + } + _memory.DecrementReferenceCount(); _context.Dispose(); _ram.Dispose(); |