Browse Source

libavfilter/af_amerge: fix segfault if init fails.

tags/n1.2
Nicolas George 12 years ago
parent
commit
bf0712c2f8
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavfilter/af_amerge.c

+ 4
- 2
libavfilter/af_amerge.c View File

@@ -63,8 +63,10 @@ static av_cold void uninit(AVFilterContext *ctx)
int i;

for (i = 0; i < am->nb_inputs; i++) {
ff_bufqueue_discard_all(&am->in[i].queue);
av_freep(&ctx->input_pads[i].name);
if (am->in)
ff_bufqueue_discard_all(&am->in[i].queue);
if (ctx->input_pads)
av_freep(&ctx->input_pads[i].name);
}
av_freep(&am->in);
}


Loading…
Cancel
Save