From e58926662feb7b9fc8564b58b685fb80ddc9c02a Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Wed, 18 Oct 2023 00:03:26 +0100 Subject: [PATCH] t/common: Don't destroy frame context on failure This is handled later in the builder. --- src/xrt/targets/common/target_builder_lighthouse.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/xrt/targets/common/target_builder_lighthouse.c b/src/xrt/targets/common/target_builder_lighthouse.c index fb5287bc0..6d50a3682 100644 --- a/src/xrt/targets/common/target_builder_lighthouse.c +++ b/src/xrt/targets/common/target_builder_lighthouse.c @@ -500,7 +500,6 @@ stream_data_sources(struct lighthouse_system *lhs, struct xrt_prober *xp, struct xrt_prober_list_video_devices(xp, on_video_device, lhs); if (lhs->xfs == NULL) { LH_WARN("Couldn't find Index camera at all. Is it plugged in?"); - xrt_frame_context_destroy_nodes(&lhs->devices->xfctx); return false; } @@ -519,7 +518,6 @@ stream_data_sources(struct lighthouse_system *lhs, struct xrt_prober *xp, struct if (!success) { LH_ERROR("Unable to start data streaming"); - xrt_frame_context_destroy_nodes(&lhs->devices->xfctx); } return success;