diff vp56.c @ 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 2983bd7deaf5
children 170c9ce34d14
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])