diff --git a/src/xrt/state_trackers/gui/gui_scene_calibrate.c b/src/xrt/state_trackers/gui/gui_scene_calibrate.c index edeeccb5f..ab1fd8084 100644 --- a/src/xrt/state_trackers/gui/gui_scene_calibrate.c +++ b/src/xrt/state_trackers/gui/gui_scene_calibrate.c @@ -391,10 +391,10 @@ scene_destroy(struct gui_scene *scene, struct gui_program *p) free(cs->settings); cs->settings = NULL; } - +#ifdef XRT_HAVE_OPENCV // Free data, no longer needed. t_stereo_camera_calibration_reference(&cs->status.stereo_data, NULL); - +#endif free(cs); }