mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
d/steamvr_lh: Fix crash on shutdown
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2324>
This commit is contained in:
parent
4bd1290c5e
commit
3eabdc7713
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue