From a0021dc7d05722d701981421b17a0a61d0015ec9 Mon Sep 17 00:00:00 2001 From: Mateo de Mayo Date: Tue, 22 Feb 2022 19:37:47 -0300 Subject: [PATCH] t/euroc: Fix memory leak in euroc recorder This was the reason the recorder was eating so much RAM. SSD write speeds should be enough for common use cases to keep RAM stable. --- src/xrt/auxiliary/tracking/t_euroc_recorder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xrt/auxiliary/tracking/t_euroc_recorder.cpp b/src/xrt/auxiliary/tracking/t_euroc_recorder.cpp index 25e8932ef..d35602cf8 100644 --- a/src/xrt/auxiliary/tracking/t_euroc_recorder.cpp +++ b/src/xrt/auxiliary/tracking/t_euroc_recorder.cpp @@ -165,6 +165,8 @@ euroc_recorder_receive_frame(euroc_recorder *er, struct xrt_frame *src_frame, bo u_frame_clone(src_frame, ©); xrt_sink_push_frame(is_left ? er->writer_queues.left : er->writer_queues.right, copy); + + xrt_frame_reference(©, NULL); } extern "C" void