summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-28 16:59:49 -0700
committerbunnei <bunneidev@gmail.com>2021-07-20 18:54:55 -0700
commitb119363fc27994a4eb68405011235c4a1b3cdf8f (patch)
tree2114c26591b358b1af5e8bf633afda9d978cb44c
parent6020723e77585835eddcc5675385f5e7dd3072ac (diff)
hle: kernel: k_process: Close the handle table on shutdown.
-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();
}