summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/sm/sm.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-10-31 01:58:20 +0100
committerLiam <byteslice@airmail.cc>2022-10-31 13:23:29 +0100
commit4e9adae5da95219b85f11309919944bc07c4043d (patch)
tree7da5ffe32d5e20c9d5989a2cec7cc5c96a83f796 /src/core/hle/service/sm/sm.cpp
parentMerge pull request #9158 from liamwhite/single-bore (diff)
downloadyuzu-4e9adae5da95219b85f11309919944bc07c4043d.tar
yuzu-4e9adae5da95219b85f11309919944bc07c4043d.tar.gz
yuzu-4e9adae5da95219b85f11309919944bc07c4043d.tar.bz2
yuzu-4e9adae5da95219b85f11309919944bc07c4043d.tar.lz
yuzu-4e9adae5da95219b85f11309919944bc07c4043d.tar.xz
yuzu-4e9adae5da95219b85f11309919944bc07c4043d.tar.zst
yuzu-4e9adae5da95219b85f11309919944bc07c4043d.zip
Diffstat (limited to 'src/core/hle/service/sm/sm.cpp')
-rw-r--r--src/core/hle/service/sm/sm.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp
index e2b8d8720..cb6c0e96f 100644
--- a/src/core/hle/service/sm/sm.cpp
+++ b/src/core/hle/service/sm/sm.cpp
@@ -149,9 +149,10 @@ ResultVal<Kernel::KClientSession*> SM::GetServiceImpl(Kernel::HLERequestContext&
return port_result.Code();
}
auto& port = port_result.Unwrap();
- SCOPE_EXIT({ port->GetClientPort().Close(); });
-
- kernel.RegisterServerObject(&port->GetServerPort());
+ SCOPE_EXIT({
+ port->GetClientPort().Close();
+ port->GetServerPort().Close();
+ });
// Create a new session.
Kernel::KClientSession* session{};