On 11/22/2024 10:20 PM, Steven Zhou wrote:
Free AVOption in drawtext private context when freeing old copy of drawtext
private context during processing of "reinit" runtime command.

Signed-off-by: Steven Zhou <steven.z...@netint.ca>
---
  libavfilter/vf_drawtext.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 8de24625d6..038646b112 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -1226,6 +1226,7 @@ static int command(AVFilterContext *ctx, const char *cmd, 
const char *arg, char
ctx->priv = old;
          uninit(ctx);
+        av_opt_free(old);
          av_freep(&old);
ctx->priv = new;

Will apply.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to