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);