avcodec/vp6: Use av_freep(), avoid leaving stale pointers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/93/merge
Michael Niedermayer 10 years ago
parent 6995be43ae
commit 2ae2c60554
  1. 2
      libavcodec/vp6.c

@ -651,7 +651,7 @@ static av_cold int vp6_decode_free(AVCodecContext *avctx)
if (s->alpha_context) {
ff_vp56_free_context(s->alpha_context);
vp6_decode_free_context(s->alpha_context);
av_free(s->alpha_context);
av_freep(&s->alpha_context);
}
return 0;

Loading…
Cancel
Save