aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-07-19 15:24:18 -0300
committerGitHub <noreply@github.com>2020-07-19 15:24:18 -0300
commite7f2a5ecb709ff3ee82bb39ab32a16b5db0c101d (patch)
treef1931e1db2d0e6772d014856ab09ce1e78a8787c /Ryujinx.HLE/HOS/Services
parent3af2ce74ecf76cc8d6fdb9ff19101bfee47af7dd (diff)
Fix session service disposal and improve transfer memory implementation (#1397)
* Fix session service disposal and improve transfer memory implementation * Remove useless assignment
Diffstat (limited to 'Ryujinx.HLE/HOS/Services')
-rw-r--r--Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs b/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs
index 2a0624d5..54f28af5 100644
--- a/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs
+++ b/Ryujinx.HLE/HOS/Services/Sm/IUserInterface.cs
@@ -104,6 +104,9 @@ namespace Ryujinx.HLE.HOS.Services.Sm
throw new InvalidOperationException("Out of handles!");
}
+ session.ServerSession.DecrementReferenceCount();
+ session.ClientSession.DecrementReferenceCount();
+
context.Response.HandleDesc = IpcHandleDesc.MakeMove(handle);
return ResultCode.Success;