aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services
diff options
context:
space:
mode:
authorMary <me@thog.eu>2020-07-20 04:23:26 +0200
committerGitHub <noreply@github.com>2020-07-20 12:23:26 +1000
commitd5c34291a37f37b1c5d763122845bd4a94703f49 (patch)
tree63195f160effa573ce8f9e847f124a9329c2c810 /Ryujinx.HLE/HOS/Services
parente7f2a5ecb709ff3ee82bb39ab32a16b5db0c101d (diff)
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.
Diffstat (limited to 'Ryujinx.HLE/HOS/Services')
-rw-r--r--Ryujinx.HLE/HOS/Services/IpcService.cs3
1 files changed, 3 insertions, 0 deletions
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);
}
}