summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-12-19 07:38:25 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2021-12-19 07:38:25 +0100
commit55650c5b756d81054669974a3098aff3114309c0 (patch)
tree1dbed755682f825426ea17270a0af9a15ef12161 /src/core/hle/kernel
parentMerge pull request #7593 from german77/brrr_test (diff)
downloadyuzu-55650c5b756d81054669974a3098aff3114309c0.tar
yuzu-55650c5b756d81054669974a3098aff3114309c0.tar.gz
yuzu-55650c5b756d81054669974a3098aff3114309c0.tar.bz2
yuzu-55650c5b756d81054669974a3098aff3114309c0.tar.lz
yuzu-55650c5b756d81054669974a3098aff3114309c0.tar.xz
yuzu-55650c5b756d81054669974a3098aff3114309c0.tar.zst
yuzu-55650c5b756d81054669974a3098aff3114309c0.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/kernel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 2e4e4cb1c..1225e1fba 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;
}