mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-26 08:01:20 -08:00
kernel: Manually destroy the current process during shut down
Avoids a memory leak.
This commit is contained in:
parent
8e33cf1c2b
commit
55650c5b75
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user