Browse Source

overlay: do not leak x/y expressions.

tags/n0.10
Nicolas George 14 years ago
parent
commit
bbf372e145
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavfilter/vf_overlay.c

+ 2
- 0
libavfilter/vf_overlay.c View File

@@ -115,12 +115,14 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
av_opt_set_defaults(over);

if (expr = av_strtok(args1, ":", &bufptr)) {
av_free(over->x_expr);
if (!(over->x_expr = av_strdup(expr))) {
ret = AVERROR(ENOMEM);
goto end;
}
}
if (expr = av_strtok(NULL, ":", &bufptr)) {
av_free(over->y_expr);
if (!(over->y_expr = av_strdup(expr))) {
ret = AVERROR(ENOMEM);
goto end;


Loading…
Cancel
Save