diff options
author | bunnei <bunneidev@gmail.com> | 2022-10-30 05:03:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-30 05:03:53 +0100 |
commit | 316a2c1715b8b22f4320cde82878ba10657c48e7 (patch) | |
tree | 33f9a83bc191a307de7f235e2afdc2d2ac7ea406 | |
parent | Merge pull request #9137 from liamwhite/hbmenu (diff) | |
parent | k_server_session: fix crashes (diff) | |
download | yuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.tar yuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.tar.gz yuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.tar.bz2 yuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.tar.lz yuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.tar.xz yuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.tar.zst yuzu-316a2c1715b8b22f4320cde82878ba10657c48e7.zip |
-rw-r--r-- | src/core/hle/kernel/k_server_session.h | 2 | ||||
-rw-r--r-- | src/core/hle/service/sm/sm.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_server_session.h b/src/core/hle/kernel/k_server_session.h index 32135473b..188aef4af 100644 --- a/src/core/hle/kernel/k_server_session.h +++ b/src/core/hle/kernel/k_server_session.h @@ -91,7 +91,7 @@ private: /// List of threads which are pending a reply. boost::intrusive::list<KSessionRequest> m_request_list; - KSessionRequest* m_current_request; + KSessionRequest* m_current_request{}; KLightLock m_lock; }; diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp index 48e70f93c..e2b8d8720 100644 --- a/src/core/hle/service/sm/sm.cpp +++ b/src/core/hle/service/sm/sm.cpp @@ -80,7 +80,6 @@ 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; |