avcodec/eatgv: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
28b829b8bb
commit
acea53fea0
@ -349,8 +349,8 @@ static av_cold int tgv_decode_end(AVCodecContext *avctx)
|
|||||||
TgvContext *s = avctx->priv_data;
|
TgvContext *s = avctx->priv_data;
|
||||||
av_frame_free(&s->last_frame);
|
av_frame_free(&s->last_frame);
|
||||||
av_freep(&s->frame_buffer);
|
av_freep(&s->frame_buffer);
|
||||||
av_free(s->mv_codebook);
|
av_freep(&s->mv_codebook);
|
||||||
av_free(s->block_codebook);
|
av_freep(&s->block_codebook);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user