summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-07-02 05:05:10 +0200
committerbunnei <bunneidev@gmail.com>2021-07-21 03:54:56 +0200
commit24540e0ad9b81092aa3f60fa843bfe45ebd25b8b (patch)
tree4d3ecaf883a50733e342e1fee230f7b9943f3baf
parenthle: service: sm: Refactor to better manage ports. (diff)
downloadyuzu-24540e0ad9b81092aa3f60fa843bfe45ebd25b8b.tar
yuzu-24540e0ad9b81092aa3f60fa843bfe45ebd25b8b.tar.gz
yuzu-24540e0ad9b81092aa3f60fa843bfe45ebd25b8b.tar.bz2
yuzu-24540e0ad9b81092aa3f60fa843bfe45ebd25b8b.tar.lz
yuzu-24540e0ad9b81092aa3f60fa843bfe45ebd25b8b.tar.xz
yuzu-24540e0ad9b81092aa3f60fa843bfe45ebd25b8b.tar.zst
yuzu-24540e0ad9b81092aa3f60fa843bfe45ebd25b8b.zip
-rw-r--r--src/core/hle/kernel/svc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 8339e11a0..e1e556370 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -298,6 +298,7 @@ static ResultCode ConnectToNamedPort(Core::System& system, Handle* out, VAddr po
// Create a session.
KClientSession* session{};
R_TRY(port->CreateSession(std::addressof(session)));
+ port->Close();
// Register the session in the table, close the extra reference.
handle_table.Register(*out, session);