Use av_freep intead of av_free to free pointers in vp56 context.

Originally committed as revision 21395 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Reimar Döffinger 2010-01-23 13:49:09 +00:00
parent 48c65d0dc9
commit 6242b1c424
1 changed files with 3 additions and 3 deletions

View File

@ -687,9 +687,9 @@ av_cold int vp56_free(AVCodecContext *avctx)
{
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])