diff options
| author | 2021-06-28 16:59:49 -0700 | |
|---|---|---|
| committer | 2021-07-20 18:54:55 -0700 | |
| commit | b119363fc27994a4eb68405011235c4a1b3cdf8f (patch) | |
| tree | 2114c26591b358b1af5e8bf633afda9d978cb44c | |
| parent | hle: kernel: k_process: Close main thread reference after it is inserted into... (diff) | |
| download | yuzu-b119363fc27994a4eb68405011235c4a1b3cdf8f.tar.gz yuzu-b119363fc27994a4eb68405011235c4a1b3cdf8f.tar.xz yuzu-b119363fc27994a4eb68405011235c4a1b3cdf8f.zip | |
hle: kernel: k_process: Close the handle table on shutdown.
| -rw-r--r-- | src/core/hle/kernel/k_process.cpp | 3 |
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() { | |||
| 409 | resource_limit->Close(); | 409 | resource_limit->Close(); |
| 410 | } | 410 | } |
| 411 | 411 | ||
| 412 | // Finalize the handle table and close any open handles. | ||
| 413 | handle_table.Finalize(); | ||
| 414 | |||
| 412 | // Perform inherited finalization. | 415 | // Perform inherited finalization. |
| 413 | KAutoObjectWithSlabHeapAndContainer<KProcess, KSynchronizationObject>::Finalize(); | 416 | KAutoObjectWithSlabHeapAndContainer<KProcess, KSynchronizationObject>::Finalize(); |
| 414 | } | 417 | } |