mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/flac_parser: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fd367668e1
commit
9946da4976
@ -94,9 +94,9 @@ static av_cold int flashsv_encode_end(AVCodecContext *avctx)
|
||||
|
||||
deflateEnd(&s->zstream);
|
||||
|
||||
av_free(s->encbuffer);
|
||||
av_free(s->previous_frame);
|
||||
av_free(s->tmpblock);
|
||||
av_freep(&s->encbuffer);
|
||||
av_freep(&s->previous_frame);
|
||||
av_freep(&s->tmpblock);
|
||||
|
||||
av_frame_free(&avctx->coded_frame);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user