Browse Source

avcodec/bfi: use av_freep(), do not leave stale pointers in memory

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

+ 1
- 1
libavcodec/bfi.c View File

@@ -171,7 +171,7 @@ static int bfi_decode_frame(AVCodecContext *avctx, void *data,
static av_cold int bfi_decode_close(AVCodecContext *avctx)
{
BFIContext *bfi = avctx->priv_data;
av_free(bfi->dst);
av_freep(&bfi->dst);
return 0;
}



Loading…
Cancel
Save