History

avfilter/vf_maskfun: fix memleak

Fixes #8305

Paul B Mahol committed 7 years ago

Commit 3b580f91 parent 8e305141 file · +8 −0Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_maskfun.c+8−0
@@ -248,6 +248,13 @@ static int config_input(AVFilterLink *inlink) · 247 unmodified lines
248 return 0;248 return 0;
249}249}
250 250
251static av_cold void uninit(AVFilterContext *ctx)
252{
253 MaskFunContext *s = ctx->priv;
254
255 av_frame_free(&s->empty);
256}
257
251static const AVFilterPad maskfun_inputs[] = {258static const AVFilterPad maskfun_inputs[] = {
252 {259 {
253 .name = "default",260 .name = "default",
@@ -272,6 +279,7 @@ AVFilter ff_vf_maskfun = { · 18 unmodified lines
272 .description = NULL_IF_CONFIG_SMALL("Create Mask."),279 .description = NULL_IF_CONFIG_SMALL("Create Mask."),
273 .priv_size = sizeof(MaskFunContext),280 .priv_size = sizeof(MaskFunContext),
274 .query_formats = query_formats,281 .query_formats = query_formats,
282 .uninit = uninit,
275 .inputs = maskfun_inputs,283 .inputs = maskfun_inputs,
276 .outputs = maskfun_outputs,284 .outputs = maskfun_outputs,
277 .priv_class = &maskfun_class,285 .priv_class = &maskfun_class,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t