From 52512d0a4340895ba8bd9d2af48f256b969559d2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 12 Apr 2011 04:22:31 +0000 Subject: [PATCH] oggdec: use av_freep() instead of av_free() Signed-off-by: Anton Khirnov --- libavformat/oggdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index ce1152d3c2..d2725792e9 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -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;