summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/session.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-11-26 07:13:04 -0400
committerGravatar GitHub2019-11-26 07:13:04 -0400
commit59484442a0a7bf72f6b627a9b0672898314f2dad (patch)
tree2514317ed0d0ada5de3a219bdd1f5baa635760dc /src/core/hle/kernel/session.h
parentMerge pull request #3160 from DarkLordZach/opt-ea-clang-fmt (diff)
parentkernel: Fix reference management for client/server session. (diff)
downloadyuzu-59484442a0a7bf72f6b627a9b0672898314f2dad.tar.gz
yuzu-59484442a0a7bf72f6b627a9b0672898314f2dad.tar.xz
yuzu-59484442a0a7bf72f6b627a9b0672898314f2dad.zip
Merge pull request #3162 from bunnei/fix-shared-ptr-crash
kernel: Fix reference management for client/server session.
Diffstat (limited to 'src/core/hle/kernel/session.h')
-rw-r--r--src/core/hle/kernel/session.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/session.h b/src/core/hle/kernel/session.h
index ea956813b..94395f9f5 100644
--- a/src/core/hle/kernel/session.h
+++ b/src/core/hle/kernel/session.h
@@ -20,8 +20,8 @@ class ServerSession;
20 */ 20 */
21class Session final { 21class Session final {
22public: 22public:
23 ClientSession* client = nullptr; ///< The client endpoint of the session. 23 std::weak_ptr<ClientSession> client; ///< The client endpoint of the session.
24 ServerSession* server = nullptr; ///< The server endpoint of the session. 24 std::weak_ptr<ServerSession> server; ///< The server endpoint of the session.
25 std::shared_ptr<ClientPort> port; ///< The port that this session is associated with (optional). 25 std::shared_ptr<ClientPort> port; ///< The port that this session is associated with (optional).
26}; 26};
27} // namespace Kernel 27} // namespace Kernel