diff options
author | bunnei <bunneidev@gmail.com> | 2021-07-02 05:05:10 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-07-21 03:54:56 +0200 |
commit | 24540e0ad9b81092aa3f60fa843bfe45ebd25b8b (patch) | |
tree | 4d3ecaf883a50733e342e1fee230f7b9943f3baf /src | |
parent | hle: service: sm: Refactor to better manage ports. (diff) | |
download | yuzu-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 |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 1 |
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); |