From 1cf9b168e58cc6623d9a173a9233a6666f39f32a Mon Sep 17 00:00:00 2001 From: disjtqz Date: Sat, 14 Oct 2023 15:59:58 -0400 Subject: [PATCH] [Kernel] delete host to guest mapping in case of address collision --- src/xenia/kernel/xobject.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/xenia/kernel/xobject.cc b/src/xenia/kernel/xobject.cc index c32384db8..01a144a6c 100644 --- a/src/xenia/kernel/xobject.cc +++ b/src/xenia/kernel/xobject.cc @@ -58,11 +58,7 @@ XObject::~XObject() { uint32_t ptr = guest_object_ptr_ - sizeof(X_OBJECT_HEADER); auto header = memory()->TranslateVirtual(ptr); - // Free the object creation info - if (header->object_type_ptr) { - memory()->SystemHeapFree(header->object_type_ptr); - } - + kernel_state()->object_table()->UnmapGuestObjectHostHandle(ptr); memory()->SystemHeapFree(ptr); } }