The open source OpenXR runtime

d/steamvr_lh: Fix crash on shutdown

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2324>

+4 -1
+4 -1
src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
··· 732 732 void 733 733 destroy(struct xrt_system_devices *xsysd) 734 734 { 735 - u_system_devices_close(xsysd); 735 + for (uint32_t i = 0; i < ARRAY_SIZE(xsysd->xdevs); i++) { 736 + xrt_device_destroy(&xsysd->xdevs[i]); 737 + } 738 + 736 739 svrs->ctx.reset(); 737 740 free(svrs); 738 741 }