summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/sm
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-11 09:09:01 +0100
committerbunnei <bunneidev@gmail.com>2022-03-15 02:14:53 +0100
commit8873c0c3db377b54dd5ae36f55543ec12bdefb96 (patch)
treef318732626585d2fe4687e633e6105750ff9c4f4 /src/core/hle/service/sm
parentcore: hle: kernel: k_thread: Update to reflect tree changes. (diff)
downloadyuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.tar
yuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.tar.gz
yuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.tar.bz2
yuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.tar.lz
yuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.tar.xz
yuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.tar.zst
yuzu-8873c0c3db377b54dd5ae36f55543ec12bdefb96.zip
Diffstat (limited to 'src/core/hle/service/sm')
-rw-r--r--src/core/hle/service/sm/sm.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp
index eaa172595..695a1faa6 100644
--- a/src/core/hle/service/sm/sm.cpp
+++ b/src/core/hle/service/sm/sm.cpp
@@ -81,6 +81,8 @@ ResultVal<Kernel::KPort*> ServiceManager::GetServicePort(const std::string& name
}
auto* port = Kernel::KPort::Create(kernel);
+ SCOPE_EXIT({ port->Close(); });
+
port->Initialize(ServerSessionCountMax, false, name);
auto handler = it->second;
port->GetServerPort().SetSessionHandler(std::move(handler));