Commit f8210f89 authored by Nicolas George's avatar Nicolas George

vf_fade: free type when overwriting it.

parent c266eb19
......@@ -94,6 +94,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
}
if (expr = av_strtok(args1, ":", &bufptr)) {
av_free(fade->type);
if (!(fade->type = av_strdup(expr))) {
ret = AVERROR(ENOMEM);
goto end;
......
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