mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 05:15:47 +00:00
kernel: Manually destroy the current process during shut down
Avoids a memory leak.
This commit is contained in:
parent
5d73d0b0ae
commit
1fff9ea35e
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue