Kernel: Added freeing of kernel objects on emulator shutdown.

This commit is contained in:
bunnei 2014-06-10 22:43:50 -04:00
parent 83a4ad2885
commit f49ac3a2d7
3 changed files with 13 additions and 0 deletions

View file

@ -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
}
/**