diff options
author | Fernando S <fsahmkow27@gmail.com> | 2022-03-16 12:15:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 12:15:33 +0100 |
commit | 2db5076ec9abab880ea2cc363f4e5e93c528d801 (patch) | |
tree | a87668b7aab0bba9dd73dabf093b9f77b1ad6937 /src/core/hle/service/sm | |
parent | Merge pull request #8023 from ameerj/kirby-pop-in (diff) | |
parent | core: hle: kernel: init_slab_setup: Move CalculateSlabHeapGapSize to global namespace. (diff) | |
download | yuzu-2db5076ec9abab880ea2cc363f4e5e93c528d801.tar yuzu-2db5076ec9abab880ea2cc363f4e5e93c528d801.tar.gz yuzu-2db5076ec9abab880ea2cc363f4e5e93c528d801.tar.bz2 yuzu-2db5076ec9abab880ea2cc363f4e5e93c528d801.tar.lz yuzu-2db5076ec9abab880ea2cc363f4e5e93c528d801.tar.xz yuzu-2db5076ec9abab880ea2cc363f4e5e93c528d801.tar.zst yuzu-2db5076ec9abab880ea2cc363f4e5e93c528d801.zip |
Diffstat (limited to 'src/core/hle/service/sm')
-rw-r--r-- | src/core/hle/service/sm/sm.cpp | 2 |
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)); |