No need to double-retain Ke* objects, as having them in the object table is enough.
This commit is contained in:
parent
a4865bd24a
commit
93602ed48a
|
@ -413,9 +413,7 @@ object_ref<XObject> XObject::GetNativeObject(KernelState* kernel_state,
|
||||||
// FIXME: This assumes the object contains a dispatch header (some don't!)
|
// FIXME: This assumes the object contains a dispatch header (some don't!)
|
||||||
StashHandle(header, object->handle());
|
StashHandle(header, object->handle());
|
||||||
|
|
||||||
// NOTE: we are double-retaining, as the object is implicitly created and
|
return object_ref<XObject>(object);
|
||||||
// can never be released.
|
|
||||||
return retain_object<XObject>(object);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue