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 > --- > 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.