mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avfilter/vf_zoompan: fix leaks
This commit is contained in:
parent
20242bc762
commit
ced3b8c61e
@ -245,6 +245,8 @@ static int output_single_frame(AVFilterContext *ctx, AVFrame *in, double *var_va
|
|||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
error:
|
error:
|
||||||
|
sws_freeContext(s->sws);
|
||||||
|
s->sws = NULL;
|
||||||
av_frame_free(&out);
|
av_frame_free(&out);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -346,6 +348,10 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|||||||
|
|
||||||
sws_freeContext(s->sws);
|
sws_freeContext(s->sws);
|
||||||
s->sws = NULL;
|
s->sws = NULL;
|
||||||
|
av_expr_free(s->x_expr);
|
||||||
|
av_expr_free(s->y_expr);
|
||||||
|
av_expr_free(s->zoom_expr);
|
||||||
|
av_frame_free(&s->in);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const AVFilterPad inputs[] = {
|
static const AVFilterPad inputs[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user