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); } }