summaryrefslogtreecommitdiff
path: root/libavformat/oggdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-04-12 04:22:31 +0000
committerAnton Khirnov <anton@khirnov.net>2011-04-20 17:37:16 +0200
commit52512d0a4340895ba8bd9d2af48f256b969559d2 (patch)
treebe4c54825ce5975e21c6c2d9cbbeada591843eaa /libavformat/oggdec.c
parent26f6b8c571bcff7b325c7d6cc226c625dd465f8e (diff)
oggdec: use av_freep() instead of av_free()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
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 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;