Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-20 00:50:16 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-10-20 00:50:16 +0400
commit6838e1f547d46ae8bad3303d6caf6b1fb9142c8e (patch)
tree29cf351b483a0994f624ebbc1e9a2231551b188c /libavformat
parent838f461b0716393a1b5c70efd03de1e8bc197380 (diff)
avformat/oggdec: favor av_freep() over av_free()
Found-by: Reimar Döffinger Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/oggdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 9f8d665fce..a099eb382e 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -99,7 +99,7 @@ static int ogg_restore(AVFormatContext *s, int discard)
if (!discard) {
for (i = 0; i < ogg->nstreams; i++)
- av_free(ogg->streams[i].buf);
+ av_freep(&ogg->streams[i].buf);
avio_seek(bc, ost->pos, SEEK_SET);
ogg->page_pos = -1;
@@ -633,14 +633,14 @@ static int ogg_read_close(AVFormatContext *s)
int i;
for (i = 0; i < ogg->nstreams; i++) {
- av_free(ogg->streams[i].buf);
+ av_freep(&ogg->streams[i].buf);
if (ogg->streams[i].codec &&
ogg->streams[i].codec->cleanup) {
ogg->streams[i].codec->cleanup(s, i);
}
- av_free(ogg->streams[i].private);
+ av_freep(&ogg->streams[i].private);
}
- av_free(ogg->streams);
+ av_freep(&ogg->streams);
return 0;
}