st/oxr: Use xrt_comp_native_destroy helper

This commit is contained in:
Jakob Bornecrantz 2020-10-04 12:56:27 +01:00
parent 3729f2e8c9
commit 9dd8bfef28

View file

@ -70,7 +70,7 @@ oxr_instance_destroy(struct oxr_logger *log, struct oxr_handle_base *hb)
struct oxr_instance *inst = (struct oxr_instance *)hb;
// Does a null-ptr check.
xrt_comp_destroy((struct xrt_compositor **)&inst->system.xcn);
xrt_comp_native_destroy(&inst->system.xcn);
u_var_remove_root((void *)inst);