mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +00:00
d/ht: Don't leak when we can't create the hand-tracker tracker
This commit is contained in:
parent
6e5efc850e
commit
003ade3006
|
@ -128,6 +128,7 @@ ht_device_create(struct xrt_auto_prober *xap, cJSON *attached_data, struct xrt_p
|
|||
|
||||
if (xp->tracking->create_tracked_hand(xp->tracking, &htd->base, &htd->tracker) < 0) {
|
||||
HT_DEBUG(htd, "Failed to create hand tracker module");
|
||||
ht_device_destroy(&htd->base);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue