summaryrefslogtreecommitdiff
path: root/libavformat/wtv.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-01-11 01:34:30 +0100
committerJanne Grunau <janne-libav@jannau.net>2012-01-11 01:34:30 +0100
commit68e252f548f54a069c26e7502a5ed8e426f26324 (patch)
treec2de16423e3f221dcee5ab47db6ce26ebb7ffad1 /libavformat/wtv.c
parentf6a152db1130976aa0b5da446e5df45e2c7585b8 (diff)
wtv: fix memleaks during normal operation
Diffstat (limited to 'libavformat/wtv.c')
-rw-r--r--libavformat/wtv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/wtv.c b/libavformat/wtv.c
index e4b9ae573a..c6198680c7 100644
--- a/libavformat/wtv.c
+++ b/libavformat/wtv.c
@@ -302,6 +302,8 @@ static void wtvfile_close(AVIOContext *pb)
{
WtvFile *wf = pb->opaque;
av_free(wf->sectors);
+ av_free(wf);
+ av_free(pb->buffer);
av_free(pb);
}
@@ -1093,6 +1095,7 @@ static int read_seek(AVFormatContext *s, int stream_index,
static int read_close(AVFormatContext *s)
{
WtvContext *wtv = s->priv_data;
+ av_free(wtv->index_entries);
wtvfile_close(wtv->pb);
return 0;
}