Commit a6e2cf5e authored by Paul B Mahol's avatar Paul B Mahol

avfilter/f_metadata: do not memleak expr

parent 9c9d5bf2
...@@ -283,6 +283,8 @@ static av_cold void uninit(AVFilterContext *ctx) ...@@ -283,6 +283,8 @@ static av_cold void uninit(AVFilterContext *ctx)
{ {
MetadataContext *s = ctx->priv; MetadataContext *s = ctx->priv;
av_expr_free(s->expr);
s->expr = NULL;
if (s->avio_context) { if (s->avio_context) {
avio_closep(&s->avio_context); avio_closep(&s->avio_context);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment