Commit 9cf9214d authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/color: free internal context options in uninit()

Keeping the set options in the context when the component is still used
can be useful for debugging purposes.
parent a74dcb7d
...@@ -89,13 +89,13 @@ static av_cold int color_init(AVFilterContext *ctx, const char *args) ...@@ -89,13 +89,13 @@ static av_cold int color_init(AVFilterContext *ctx, const char *args)
color->time_base.den = frame_rate_q.num; color->time_base.den = frame_rate_q.num;
end: end:
av_opt_free(color);
return ret; return ret;
} }
static av_cold void color_uninit(AVFilterContext *ctx) static av_cold void color_uninit(AVFilterContext *ctx)
{ {
ColorContext *color = ctx->priv; ColorContext *color = ctx->priv;
av_opt_free(color);
avfilter_unref_bufferp(&color->picref); avfilter_unref_bufferp(&color->picref);
} }
......
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