Commit c5f9a66f authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter: allow freeing NULL.

this way avfilter_free() can be called without NULL checks.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a79af8e8
......@@ -834,6 +834,9 @@ void avfilter_free(AVFilterContext *filter)
int i;
AVFilterLink *link;
if (!filter)
return;
if (filter->filter->uninit)
filter->filter->uninit(filter);
......
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