mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
libavcodec/libx264: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4243415741
commit
ade140eb73
@ -305,7 +305,7 @@ static av_cold int X264_close(AVCodecContext *avctx)
|
||||
X264Context *x4 = avctx->priv_data;
|
||||
|
||||
av_freep(&avctx->extradata);
|
||||
av_free(x4->sei);
|
||||
av_freep(&x4->sei);
|
||||
|
||||
if (x4->enc)
|
||||
x264_encoder_close(x4->enc);
|
||||
|
Loading…
Reference in New Issue
Block a user