d/vive: Destroy watchman hid device on shutdown

This commit is contained in:
Christoph Haag 2020-08-05 18:23:27 +02:00 committed by Jakob Bornecrantz
parent 1f9e5cdfb6
commit 12c0f5d75a

View file

@ -65,6 +65,11 @@ vive_device_destroy(struct xrt_device *xdev)
d->sensors_dev = NULL;
}
if (d->watchman_dev != NULL) {
os_hid_destroy(d->watchman_dev);
d->watchman_dev = NULL;
}
if (d->lh.sensors != NULL) {
free(d->lh.sensors);
d->lh.sensors = NULL;