Browse Source

avcodec/ffv1: use av_freep()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 11 years ago
parent
commit
a3963cc8ec
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/ffv1.c

+ 2
- 2
libavcodec/ffv1.c View File

@@ -148,8 +148,8 @@ av_cold int ffv1_init_slice_contexts(FFV1Context *f)

memfail:
for (j = 0; j < i; j++) {
av_free(&f->slice_context[j]->sample_buffer);
av_free(&f->slice_context[j]);
av_freep(&f->slice_context[j]->sample_buffer);
av_freep(&f->slice_context[j]);
}
return AVERROR(ENOMEM);
}


Loading…
Cancel
Save