summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-29 01:59:49 +0200
committerbunnei <bunneidev@gmail.com>2021-07-21 03:54:55 +0200
commitb119363fc27994a4eb68405011235c4a1b3cdf8f (patch)
tree2114c26591b358b1af5e8bf633afda9d978cb44c /src/core
parenthle: kernel: k_process: Close main thread reference after it is inserted into handle table. (diff)
downloadyuzu-b119363fc27994a4eb68405011235c4a1b3cdf8f.tar
yuzu-b119363fc27994a4eb68405011235c4a1b3cdf8f.tar.gz
yuzu-b119363fc27994a4eb68405011235c4a1b3cdf8f.tar.bz2
yuzu-b119363fc27994a4eb68405011235c4a1b3cdf8f.tar.lz
yuzu-b119363fc27994a4eb68405011235c4a1b3cdf8f.tar.xz
yuzu-b119363fc27994a4eb68405011235c4a1b3cdf8f.tar.zst
yuzu-b119363fc27994a4eb68405011235c4a1b3cdf8f.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/k_process.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cpp
index c309ae563..87171b1c8 100644
--- a/src/core/hle/kernel/k_process.cpp
+++ b/src/core/hle/kernel/k_process.cpp
@@ -409,6 +409,9 @@ void KProcess::Finalize() {
resource_limit->Close();
}
+ // Finalize the handle table and close any open handles.
+ handle_table.Finalize();
+
// Perform inherited finalization.
KAutoObjectWithSlabHeapAndContainer<KProcess, KSynchronizationObject>::Finalize();
}