diff options
author | bunnei <[email protected]> | 2022-04-06 17:37:00 -0700 |
---|---|---|
committer | bunnei <[email protected]> | 2022-04-08 14:11:39 -0700 |
commit | d737652d08ad40ff235772f0ff3daaa9a4478cef (patch) | |
tree | e629e7ee8d1540a0a1a72af1fc40d3469cc41890 /src/core/hle/service/sm/sm.cpp | |
parent | f55fc850a245921cc2e89d281ff8bf81380f007b (diff) | |
download | yuzu-android-d737652d08ad40ff235772f0ff3daaa9a4478cef.tar.gz yuzu-android-d737652d08ad40ff235772f0ff3daaa9a4478cef.zip |
hle: service: sm: Remove manual tracking of KServerPorts.
Diffstat (limited to 'src/core/hle/service/sm/sm.cpp')
-rw-r--r-- | src/core/hle/service/sm/sm.cpp | 7 |
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 |