mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-14 22:27:58 -05:00
Kernel: Added freeing of kernel objects on emulator shutdown.
This commit is contained in:
@ -132,12 +132,16 @@ Object* ObjectPool::CreateByIDType(int type) {
|
||||
}
|
||||
}
|
||||
|
||||
/// Initialize the kernel
|
||||
void Init() {
|
||||
Kernel::ThreadingInit();
|
||||
}
|
||||
|
||||
/// Shutdown the kernel
|
||||
void Shutdown() {
|
||||
Kernel::ThreadingShutdown();
|
||||
|
||||
g_object_pool.Clear(); // Free all kernel objects
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user