mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 18:09:36 +00:00
overlay: do not leak x/y expressions.
This commit is contained in:
parent
668a74e808
commit
bbf372e145
@ -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…
Reference in New Issue
Block a user