From e8f2481aa494a6d0141a406ba7504956febed5d0 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 26 Jun 2022 14:12:37 +0000 Subject: [PATCH] open-h264: unref result when finished with it --- src/open-h264.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/open-h264.c b/src/open-h264.c index 35c66d5..f986933 100644 --- a/src/open-h264.c +++ b/src/open-h264.c @@ -83,6 +83,8 @@ static void open_h264_handle_packet(const void* data, size_t size, uint64_t pts, DTRACE_PROBE1(neatvnc, open_h264_finish_frame, rpts); encoder_finish_frame(&self->parent, result, rpts); + + rcbuf_unref(result); } static int open_h264_init_pending(struct open_h264* self)