From 2b3591ed8f4f7ca754807f50c5da1d4327ef9c7f Mon Sep 17 00:00:00 2001 From: MerryMage Date: Thu, 15 Feb 2018 22:10:57 +0000 Subject: [PATCH] CpuTest: Add TearDown --- Ryujinx.Tests/Cpu/CpuTest.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Ryujinx.Tests/Cpu/CpuTest.cs b/Ryujinx.Tests/Cpu/CpuTest.cs index 44e0ce878c..75d8e6b995 100644 --- a/Ryujinx.Tests/Cpu/CpuTest.cs +++ b/Ryujinx.Tests/Cpu/CpuTest.cs @@ -24,6 +24,12 @@ namespace Ryujinx.Tests.Cpu Memory.Manager.MapPhys(0x1000, 0x1000, 2, AMemoryPerm.Read | AMemoryPerm.Write | AMemoryPerm.Execute); } + [TearDown] + public void Teardown() + { + Marshal.FreeHGlobal(Ram); + } + private void Execute(AThread Thread) { AutoResetEvent Wait = new AutoResetEvent(false);