OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6a152d
)
wtv: fix memleaks during normal operation
author
Janne Grunau
<janne-libav@jannau.net>
Wed, 11 Jan 2012 00:34:30 +0000
(
01:34
+0100)
committer
Janne Grunau
<janne-libav@jannau.net>
Wed, 11 Jan 2012 00:34:30 +0000
(
01:34
+0100)
libavformat/wtv.c
patch
|
blob
|
history
diff --git
a/libavformat/wtv.c
b/libavformat/wtv.c
index
e4b9ae5
..
c619868
100644
(file)
--- 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;
}