summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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() {
404} 404}
405 405
406void KProcess::Finalize() { 406void KProcess::Finalize() {
407 // Finalize the handle table and close any open handles.
408 handle_table.Finalize();
409
410 // Free all shared memory infos. 407 // Free all shared memory infos.
411 { 408 {
412 auto it = shared_memory_list.begin(); 409 auto it = shared_memory_list.begin();
@@ -431,6 +428,9 @@ void KProcess::Finalize() {
431 resource_limit = nullptr; 428 resource_limit = nullptr;
432 } 429 }
433 430
431 // Finalize the page table.
432 page_table.reset();
433
434 // Perform inherited finalization. 434 // Perform inherited finalization.
435 KAutoObjectWithSlabHeapAndContainer<KProcess, KWorkerTask>::Finalize(); 435 KAutoObjectWithSlabHeapAndContainer<KProcess, KWorkerTask>::Finalize();
436} 436}