ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Sun Oct 12 12:22:00 2014 +0200| [acea53fea0b86c574996b07831d2681a8195f510] | committer: Michael Niedermayer
avcodec/eatgv: use av_freep(), do not leave stale pointers in memory Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=acea53fea0b86c574996b07831d2681a8195f510 --- libavcodec/eatgv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/eatgv.c b/libavcodec/eatgv.c index f204a13..b84af80 100644 --- a/libavcodec/eatgv.c +++ b/libavcodec/eatgv.c @@ -349,8 +349,8 @@ static av_cold int tgv_decode_end(AVCodecContext *avctx) TgvContext *s = avctx->priv_data; av_frame_free(&s->last_frame); av_freep(&s->frame_buffer); - av_free(s->mv_codebook); - av_free(s->block_codebook); + av_freep(&s->mv_codebook); + av_freep(&s->block_codebook); return 0; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog