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:
Michael Niedermayer 2014-10-14 18:30:15 +02:00
parent fd367668e1
commit 9946da4976
1 changed files with 3 additions and 3 deletions

View File

@ -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);