summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-12 02:15:04 +0100
committerbunnei <bunneidev@gmail.com>2022-03-15 02:14:54 +0100
commit0defac2f2a7e9d2524383f7a3413ad5df9019603 (patch)
treeec65a717f0e91583271a9efcd773aaf64ae97ffd
parentcore: hle: kernel: k_process: Implement thread local storage accurately. (diff)
downloadyuzu-0defac2f2a7e9d2524383f7a3413ad5df9019603.tar
yuzu-0defac2f2a7e9d2524383f7a3413ad5df9019603.tar.gz
yuzu-0defac2f2a7e9d2524383f7a3413ad5df9019603.tar.bz2
yuzu-0defac2f2a7e9d2524383f7a3413ad5df9019603.tar.lz
yuzu-0defac2f2a7e9d2524383f7a3413ad5df9019603.tar.xz
yuzu-0defac2f2a7e9d2524383f7a3413ad5df9019603.tar.zst
yuzu-0defac2f2a7e9d2524383f7a3413ad5df9019603.zip
-rw-r--r--src/core/hle/kernel/k_process.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cpp
index 60dc9a048..b39405496 100644
--- a/src/core/hle/kernel/k_process.cpp
+++ b/src/core/hle/kernel/k_process.cpp
@@ -404,9 +404,6 @@ void KProcess::PrepareForTermination() {
}
void KProcess::Finalize() {
- // Finalize the handle table and close any open handles.
- handle_table.Finalize();
-
// Free all shared memory infos.
{
auto it = shared_memory_list.begin();
@@ -431,6 +428,9 @@ void KProcess::Finalize() {
resource_limit = nullptr;
}
+ // Finalize the page table.
+ page_table.reset();
+
// Perform inherited finalization.
KAutoObjectWithSlabHeapAndContainer<KProcess, KWorkerTask>::Finalize();
}