mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-06 07:06:10 +00:00
d/vive: Destroy watchman hid device on shutdown
This commit is contained in:
parent
1f9e5cdfb6
commit
12c0f5d75a
|
@ -65,6 +65,11 @@ vive_device_destroy(struct xrt_device *xdev)
|
||||||
d->sensors_dev = NULL;
|
d->sensors_dev = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (d->watchman_dev != NULL) {
|
||||||
|
os_hid_destroy(d->watchman_dev);
|
||||||
|
d->watchman_dev = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (d->lh.sensors != NULL) {
|
if (d->lh.sensors != NULL) {
|
||||||
free(d->lh.sensors);
|
free(d->lh.sensors);
|
||||||
d->lh.sensors = NULL;
|
d->lh.sensors = NULL;
|
||||||
|
|
Loading…
Reference in a new issue