oggdec: use av_freep() instead of av_free()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 11 Apr 2011 09:49:07 +0000 (11:49 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 11 Apr 2011 09:49:36 +0000 (11:49 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggdec.c

index e32f802..83ae9bd 100644 (file)
@@ -247,8 +247,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;