Mercurial > libavcodec.hg
changeset 10968:c1cccc058c7a libavcodec
Use av_freep intead of av_free to free pointers in vp56 context.
author | reimar |
---|---|
date | Sat, 23 Jan 2010 13:49:09 +0000 |
parents | 1c3a10f94570 |
children | 2e8fbfc278d5 |
files | vp56.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/vp56.c Sat Jan 23 10:25:22 2010 +0000 +++ b/vp56.c Sat Jan 23 13:49:09 2010 +0000 @@ -687,9 +687,9 @@ { VP56Context *s = avctx->priv_data; - av_free(s->above_blocks); - av_free(s->macroblocks); - av_free(s->edge_emu_buffer_alloc); + av_freep(&s->above_blocks); + av_freep(&s->macroblocks); + av_freep(&s->edge_emu_buffer_alloc); if (s->framep[VP56_FRAME_GOLDEN]->data[0]) avctx->release_buffer(avctx, s->framep[VP56_FRAME_GOLDEN]); if (s->framep[VP56_FRAME_GOLDEN2]->data[0])