diff --git a/src/xrt/state_trackers/oxr/oxr_instance.c b/src/xrt/state_trackers/oxr/oxr_instance.c index 99ffc3ab7..f3112f905 100644 --- a/src/xrt/state_trackers/oxr/oxr_instance.c +++ b/src/xrt/state_trackers/oxr/oxr_instance.c @@ -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);