From d5c34291a37f37b1c5d763122845bd4a94703f49 Mon Sep 17 00:00:00 2001 From: Mary Date: Mon, 20 Jul 2020 04:23:26 +0200 Subject: [PATCH] ipc hle: Fix disposing of session created with MakeObject (#1404) This fix a missing part of #1397, making HLE ipc session being disposed when needed. THis is needed for upcoming wip changes. --- Ryujinx.HLE/HOS/Services/IpcService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Ryujinx.HLE/HOS/Services/IpcService.cs b/Ryujinx.HLE/HOS/Services/IpcService.cs index d13f3df8..a2b6d10c 100644 --- a/Ryujinx.HLE/HOS/Services/IpcService.cs +++ b/Ryujinx.HLE/HOS/Services/IpcService.cs @@ -177,6 +177,9 @@ namespace Ryujinx.HLE.HOS.Services throw new InvalidOperationException("Out of handles!"); } + session.ServerSession.DecrementReferenceCount(); + session.ClientSession.DecrementReferenceCount(); + context.Response.HandleDesc = IpcHandleDesc.MakeMove(handle); } }