summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-04-07 02:42:23 +0200
committerbunnei <bunneidev@gmail.com>2022-04-08 23:11:40 +0200
commitb44a564792dc391aa2012b424b04ea50c83e27d1 (patch)
treef6df9dccdaa25412ce3e8c04a958918dbacdd663
parenthle: kernel: k_auto_object: Move unregister with kernel to after Destroy. (diff)
downloadyuzu-b44a564792dc391aa2012b424b04ea50c83e27d1.tar
yuzu-b44a564792dc391aa2012b424b04ea50c83e27d1.tar.gz
yuzu-b44a564792dc391aa2012b424b04ea50c83e27d1.tar.bz2
yuzu-b44a564792dc391aa2012b424b04ea50c83e27d1.tar.lz
yuzu-b44a564792dc391aa2012b424b04ea50c83e27d1.tar.xz
yuzu-b44a564792dc391aa2012b424b04ea50c83e27d1.tar.zst
yuzu-b44a564792dc391aa2012b424b04ea50c83e27d1.zip
-rw-r--r--src/core/hle/kernel/k_server_port.cpp3
1 files changed, 3 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..6922a07cb 100644
--- a/src/core/hle/kernel/k_server_port.cpp
+++ b/src/core/hle/kernel/k_server_port.cpp
@@ -62,6 +62,9 @@ void KServerPort::Destroy() {
// Close our reference to our parent.
parent->Close();
+
+ // Release host emulation members.
+ session_handler.reset();
}
bool KServerPort::IsSignaled() const {