From dc82b3f29d74f2581a207d2f8632486dc0c27c47 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Wed, 29 Jun 2022 11:39:46 +0000 Subject: [PATCH] h264-encoder: Clean up current_packet in destroy --- src/h264-encoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/h264-encoder.c b/src/h264-encoder.c index f6f7217..0b24066 100644 --- a/src/h264-encoder.c +++ b/src/h264-encoder.c @@ -568,6 +568,7 @@ void h264_encoder_destroy(struct h264_encoder* self) return; } + vec_destroy(&self->current_packet); av_buffer_unref(&self->hw_frames_ctx); avcodec_free_context(&self->codec_ctx); av_buffer_unref(&self->hw_device_ctx);