Commit 98fbf8ef authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ade140eb
...@@ -201,7 +201,7 @@ static av_cold int XAVS_close(AVCodecContext *avctx) ...@@ -201,7 +201,7 @@ static av_cold int XAVS_close(AVCodecContext *avctx)
XavsContext *x4 = avctx->priv_data; XavsContext *x4 = avctx->priv_data;
av_freep(&avctx->extradata); av_freep(&avctx->extradata);
av_free(x4->sei); av_freep(&x4->sei);
av_freep(&x4->pts_buffer); av_freep(&x4->pts_buffer);
if (x4->enc) if (x4->enc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment