Browse Source

libavcodec/libxavs: Use av_freep() avoid leaving stale pointers in memory

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

+ 1
- 1
libavcodec/libxavs.c View File

@@ -201,7 +201,7 @@ static av_cold int XAVS_close(AVCodecContext *avctx)
XavsContext *x4 = avctx->priv_data;

av_freep(&avctx->extradata);
av_free(x4->sei);
av_freep(&x4->sei);
av_freep(&x4->pts_buffer);

if (x4->enc)


Loading…
Cancel
Save