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

This commit is contained in:
bunnei
2021-01-16 00:25:29 -08:00
parent 33b4930280
commit ff186b2498
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;