summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/k_server_port.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-04-12 23:01:40 +0200
committerGitHub <noreply@github.com>2022-04-12 23:01:40 +0200
commitca2accfb259b948431ec174ead432778f3c86f67 (patch)
treef3729b67e09270683a948f48169185c2360cc4af /src/core/hle/kernel/k_server_port.cpp
parentMerge pull request #8178 from tech-ticks/skyline-icache-fix (diff)
parenthle: kernel: Unify and integrate reference tracking for KServerPort/KServerSession. (diff)
downloadyuzu-ca2accfb259b948431ec174ead432778f3c86f67.tar
yuzu-ca2accfb259b948431ec174ead432778f3c86f67.tar.gz
yuzu-ca2accfb259b948431ec174ead432778f3c86f67.tar.bz2
yuzu-ca2accfb259b948431ec174ead432778f3c86f67.tar.lz
yuzu-ca2accfb259b948431ec174ead432778f3c86f67.tar.xz
yuzu-ca2accfb259b948431ec174ead432778f3c86f67.tar.zst
yuzu-ca2accfb259b948431ec174ead432778f3c86f67.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_server_port.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_server_port.cpp b/src/core/hle/kernel/k_server_port.cpp
index 433fc98e1..e66c0c992 100644
--- a/src/core/hle/kernel/k_server_port.cpp
+++ b/src/core/hle/kernel/k_server_port.cpp
@@ -62,6 +62,12 @@ void KServerPort::Destroy() {
// Close our reference to our parent.
parent->Close();
+
+ // Release host emulation members.
+ session_handler.reset();
+
+ // Ensure that the global list tracking server objects does not hold on to a reference.
+ kernel.UnregisterServerObject(this);
}
bool KServerPort::IsSignaled() const {