core: hle: kernel: object: Implement Finalize() virtual method.

This commit is contained in:
bunnei 2021-01-16 00:25:29 -08:00
parent 3cefddbb47
commit eb3a02a3fd
15 changed files with 29 additions and 6 deletions

View file

@ -89,6 +89,10 @@ ResultCode HandleTable::Close(Handle handle) {
const u16 slot = GetSlot(handle);
if (objects[slot].use_count() == 1) {
objects[slot]->Finalize();
}
objects[slot] = nullptr;
generations[slot] = next_free_slot;