No need to double-retain Ke* objects, as having them in the object table is enough.

This commit is contained in:
Dr. Chat 2015-12-05 19:36:56 -06:00 committed by Ben Vanik
parent a4865bd24a
commit 93602ed48a
1 changed files with 1 additions and 3 deletions

View File

@ -413,9 +413,7 @@ object_ref<XObject> 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<XObject>(object);
return object_ref<XObject>(object);
}
}