diff options
| author | bunnei <bunneidev@gmail.com> | 2021-12-19 02:09:53 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-19 02:09:53 -0800 |
| commit | d038eddf157666916b3834640de7abee44f2d920 (patch) | |
| tree | 1dbed755682f825426ea17270a0af9a15ef12161 /src/core/hle/kernel/kernel.cpp | |
| parent | 5d73d0b0ae8c3569962bce613fd4cdcc2b1e6e42 (diff) | |
| parent | 1fff9ea35e2e327ef6743f2b2f9d11cfe6252587 (diff) | |
Merge pull request #7603 from ameerj/here-we-go-again
kernel: Manually destroy the current process during shut down
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -rw-r--r-- | src/core/hle/kernel/kernel.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 2e4e4cb1cc..1225e1fbad 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -182,7 +182,10 @@ struct KernelCore::Impl { // Shutdown all processes. if (current_process) { current_process->Finalize(); - current_process->Close(); + // current_process->Close(); + // TODO: The current process should be destroyed based on accurate ref counting after + // calling Close(). Adding a manual Destroy() call instead to avoid a memory leak. + current_process->Destroy(); current_process = nullptr; } |
