diff options
author | bunnei <bunneidev@gmail.com> | 2022-04-07 02:44:06 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2022-04-08 23:13:22 +0200 |
commit | a7f73d606f596ab73cf794a76c06cd955033cada (patch) | |
tree | 55f4a3d1decb97c548f6ab33128aef4566f18c7c /src/core/hle/kernel/k_server_session.cpp | |
parent | hle: kernel: k_server_port: Release ref-counted host emulation members on Destroy. (diff) | |
download | yuzu-a7f73d606f596ab73cf794a76c06cd955033cada.tar yuzu-a7f73d606f596ab73cf794a76c06cd955033cada.tar.gz yuzu-a7f73d606f596ab73cf794a76c06cd955033cada.tar.bz2 yuzu-a7f73d606f596ab73cf794a76c06cd955033cada.tar.lz yuzu-a7f73d606f596ab73cf794a76c06cd955033cada.tar.xz yuzu-a7f73d606f596ab73cf794a76c06cd955033cada.tar.zst yuzu-a7f73d606f596ab73cf794a76c06cd955033cada.zip |
Diffstat (limited to 'src/core/hle/kernel/k_server_session.cpp')
-rw-r--r-- | src/core/hle/kernel/k_server_session.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_server_session.cpp b/src/core/hle/kernel/k_server_session.cpp index 30c56ff29..7ac2ef254 100644 --- a/src/core/hle/kernel/k_server_session.cpp +++ b/src/core/hle/kernel/k_server_session.cpp @@ -49,6 +49,9 @@ void KServerSession::Destroy() { // Release host emulation members. manager.reset(); + + // Ensure that the global list tracking server objects does not hold on to a reference. + kernel.UnregisterServerObject(this); } void KServerSession::OnClientClosed() { |