oggdec: use av_freep() instead of av_free()
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 12 Apr 2011 04:22:31 +0000 (04:22 +0000)
committerAnton Khirnov <anton@khirnov.net>
Wed, 20 Apr 2011 15:37:16 +0000 (17:37 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/oggdec.c

index ce1152d3c29362b020e1b2a8a571b32d170f7ecc..d2725792e9ace3563e8133b666cad0e82f5ad53e 100644 (file)
@@ -245,8 +245,8 @@ ogg_read_page (AVFormatContext * s, int *str)
                 int n;
 
                 for (n = 0; n < ogg->nstreams; n++) {
-                    av_free(ogg->streams[n].buf);
-                    av_free(ogg->streams[n].private);
+                    av_freep(&ogg->streams[n].buf);
+                    av_freep(&ogg->streams[n].private);
                 }
                 ogg->curidx   = -1;
                 ogg->nstreams = 0;