From 7fa094f137e92f921b9bc3c9a0cef6e7b38fab9a Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 16 Aug 2018 11:51:14 -0300 Subject: [PATCH] Small improvements on finalization code --- Ryujinx.HLE/HOS/Process.cs | 2 -- Ryujinx.HLE/Switch.cs | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Ryujinx.HLE/HOS/Process.cs b/Ryujinx.HLE/HOS/Process.cs index fe5cca4d31..e11c265c39 100644 --- a/Ryujinx.HLE/HOS/Process.cs +++ b/Ryujinx.HLE/HOS/Process.cs @@ -370,8 +370,6 @@ namespace Ryujinx.HLE.HOS if (Threads.Count == 0) { Device.System.ExitProcess(ProcessId); - - Unload(); } } diff --git a/Ryujinx.HLE/Switch.cs b/Ryujinx.HLE/Switch.cs index 272f1de3ae..3154080cda 100644 --- a/Ryujinx.HLE/Switch.cs +++ b/Ryujinx.HLE/Switch.cs @@ -79,6 +79,8 @@ namespace Ryujinx.HLE internal void Unload() { VFs.Dispose(); + + Memory.Dispose(); } public void Dispose()