From 62b2124c03694bdac5ffae7df8edfe2079bf1a9a Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 19 Apr 2018 01:01:03 -0300 Subject: [PATCH] [HLE/Kernel] Dispose the thread wait even on exit --- Ryujinx.Core/OsHle/Handles/KProcessScheduler.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ryujinx.Core/OsHle/Handles/KProcessScheduler.cs b/Ryujinx.Core/OsHle/Handles/KProcessScheduler.cs index 7cdf5f9caa..1300d2185e 100644 --- a/Ryujinx.Core/OsHle/Handles/KProcessScheduler.cs +++ b/Ryujinx.Core/OsHle/Handles/KProcessScheduler.cs @@ -161,6 +161,8 @@ namespace Ryujinx.Core.OsHle.Handles if (AllThreads.TryRemove(Thread, out SchedulerThread SchedThread)) { WaitingToRun[Thread.ProcessorId].Remove(SchedThread); + + SchedThread.Dispose(); } SchedulerThread NewThread = WaitingToRun[Thread.ProcessorId].Pop();