summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/sm/sm.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-04-07 02:37:00 +0200
committerbunnei <bunneidev@gmail.com>2022-04-08 23:11:39 +0200
commitd737652d08ad40ff235772f0ff3daaa9a4478cef (patch)
treee629e7ee8d1540a0a1a72af1fc40d3469cc41890 /src/core/hle/service/sm/sm.cpp
parenthle: kernel: hle_ipc: HasSessionRequestHandler: Check if domain handler is expired rather than locking. (diff)
downloadyuzu-d737652d08ad40ff235772f0ff3daaa9a4478cef.tar
yuzu-d737652d08ad40ff235772f0ff3daaa9a4478cef.tar.gz
yuzu-d737652d08ad40ff235772f0ff3daaa9a4478cef.tar.bz2
yuzu-d737652d08ad40ff235772f0ff3daaa9a4478cef.tar.lz
yuzu-d737652d08ad40ff235772f0ff3daaa9a4478cef.tar.xz
yuzu-d737652d08ad40ff235772f0ff3daaa9a4478cef.tar.zst
yuzu-d737652d08ad40ff235772f0ff3daaa9a4478cef.zip
Diffstat (limited to 'src/core/hle/service/sm/sm.cpp')
-rw-r--r--src/core/hle/service/sm/sm.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp
index 97f895852..2ac6dc596 100644
--- a/src/core/hle/service/sm/sm.cpp
+++ b/src/core/hle/service/sm/sm.cpp
@@ -153,7 +153,6 @@ ResultVal<Kernel::KClientSession*> SM::GetServiceImpl(Kernel::HLERequestContext&
auto& port = port_result.Unwrap();
SCOPE_EXIT({ port->GetClientPort().Close(); });
- server_ports.emplace_back(&port->GetServerPort());
// Create a new session.
Kernel::KClientSession* session{};
@@ -224,10 +223,6 @@ SM::SM(ServiceManager& service_manager_, Core::System& system_)
});
}
-SM::~SM() {
- for (auto& server_port : server_ports) {
- server_port->Close();
- }
-}
+SM::~SM() = default;
} // namespace Service::SM