summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-03-03 12:20:30 +0100
committerNicolas George <nicolas.george@normalesup.org>2012-03-03 12:33:54 +0100
commitf8210f892ec5cb3eeb0e267a18ae8531141104b5 (patch)
tree1865fa6761413dfbdae0bb37fb9d11df0a3fe0e1 /libavfilter
parentc266eb1928ad27b27ac122a7e3bda9676642aac5 (diff)
vf_fade: free type when overwriting it.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_fade.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c
index 7fe0dae3f4..79c8994d00 100644
--- a/libavfilter/vf_fade.c
+++ b/libavfilter/vf_fade.c
@@ -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;