d/steamvr_lh: Fix double free in builder

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2387>
This commit is contained in:
rcelyte 2025-01-04 03:50:37 +00:00
parent 5a277c8e46
commit a8ac453e20

View file

@ -132,7 +132,6 @@ steamvr_open_system(struct xrt_builder *xb,
if (result != XRT_SUCCESS) {
SVR_ERROR("Unable to create devices");
steamvr_destroy(xb);
return result;
}
@ -141,7 +140,6 @@ steamvr_open_system(struct xrt_builder *xb,
if (xsysd->static_roles.head == NULL) {
SVR_ERROR("Unable to find HMD");
steamvr_destroy(xb);
return XRT_ERROR_DEVICE_CREATION_FAILED;
}