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

hle: kernel: KThread: Release thread resource on thread exit.

This commit is contained in:
bunnei 2021-01-28 21:49:47 -08:00
parent 10738839ad
commit e24c6dab93

View file

@ -247,6 +247,7 @@ void KThread::Finalize() {
// Decrement the parent process's thread count.
if (parent != nullptr) {
parent->DecrementThreadCount();
parent->GetResourceLimit()->Release(ResourceType::Threads, 1);
}
}