summaryrefslogtreecommitdiff
path: root/libavformat/oggdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-04-11 11:49:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-04-11 11:49:36 +0200
commitc104a6e90226eaa253aeba471c8859e0da922da7 (patch)
treec80974450351baea21d6bedcc523798380852917 /libavformat/oggdec.c
parentb52a65ccc8ab20512387b31b53788ed5945d2c87 (diff)
oggdec: use av_freep() instead of av_free()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r--libavformat/oggdec.c4
1 files 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;