From c104a6e90226eaa253aeba471c8859e0da922da7 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 11 Apr 2011 11:49:07 +0200 Subject: [PATCH] oggdec: use av_freep() instead of av_free() Signed-off-by: Michael Niedermayer --- libavformat/oggdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index e32f8029e0..83ae9bdb0e 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -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;