2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #7603 from ameerj/here-we-go-again

kernel: Manually destroy the current process during shut down
This commit is contained in:
bunnei 2021-12-19 02:09:53 -08:00 committed by GitHub
commit eb4ea7e5c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,7 +182,10 @@ struct KernelCore::Impl {
// Shutdown all processes. // Shutdown all processes.
if (current_process) { if (current_process) {
current_process->Finalize(); 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; current_process = nullptr;
} }