diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-07-29 17:11:35 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-07-30 00:33:13 +0200 |
commit | 9cf9214d0a0dcceeab31fc856ab614bcbe7ee027 (patch) | |
tree | 19c1d891bfeb646cdddf565deb292cdc66756a83 /libavfilter/vsrc_color.c | |
parent | a74dcb7dc00f053c175d2b296494d648c9fb60bd (diff) |
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.
Diffstat (limited to 'libavfilter/vsrc_color.c')
-rw-r--r-- | libavfilter/vsrc_color.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_color.c b/libavfilter/vsrc_color.c index efbaee4115..6612de5a6e 100644 --- a/libavfilter/vsrc_color.c +++ b/libavfilter/vsrc_color.c @@ -89,13 +89,13 @@ static av_cold int color_init(AVFilterContext *ctx, const char *args) color->time_base.den = frame_rate_q.num; end: - av_opt_free(color); return ret; } static av_cold void color_uninit(AVFilterContext *ctx) { ColorContext *color = ctx->priv; + av_opt_free(color); avfilter_unref_bufferp(&color->picref); } |