aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-04-06 17:42:23 -0700
committerbunnei <bunneidev@gmail.com>2022-04-08 14:11:40 -0700
commitb44a564792dc391aa2012b424b04ea50c83e27d1 (patch)
treef6df9dccdaa25412ce3e8c04a958918dbacdd663 /src
parent788bebb160e0f6002a225eac365252a493a92f77 (diff)
hle: kernel: k_server_port: Release ref-counted host emulation members on Destroy.
Diffstat (limited to 'src')
-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 433fc98e1d..6922a07cb0 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 {