From 93602ed48aa35fa14ecb4e17be470b312c502efb Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sat, 5 Dec 2015 19:36:56 -0600 Subject: [PATCH] No need to double-retain Ke* objects, as having them in the object table is enough. --- src/xenia/kernel/xobject.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/xenia/kernel/xobject.cc b/src/xenia/kernel/xobject.cc index c5cae5496..83b66ec68 100644 --- a/src/xenia/kernel/xobject.cc +++ b/src/xenia/kernel/xobject.cc @@ -413,9 +413,7 @@ object_ref XObject::GetNativeObject(KernelState* kernel_state, // FIXME: This assumes the object contains a dispatch header (some don't!) StashHandle(header, object->handle()); - // NOTE: we are double-retaining, as the object is implicitly created and - // can never be released. - return retain_object(object); + return object_ref(object); } }