d/steamvr_lh: Fix crash on shutdown

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2324>
This commit is contained in:
Christoph Haag 2024-09-09 01:22:30 +02:00
parent 4bd1290c5e
commit 3eabdc7713

View file

@ -732,7 +732,10 @@ get_roles(struct xrt_system_devices *xsysd, struct xrt_system_roles *out_roles)
void
destroy(struct xrt_system_devices *xsysd)
{
u_system_devices_close(xsysd);
for (uint32_t i = 0; i < ARRAY_SIZE(xsysd->xdevs); i++) {
xrt_device_destroy(&xsysd->xdevs[i]);
}
svrs->ctx.reset();
free(svrs);
}