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:
027712e
)
jvdec: Fix memory leak of jv->frames
author
Paul B Mahol
<onemda@gmail.com>
Tue, 3 Jul 2012 09:51:44 +0000
(09:51 +0000)
committer
Luca Barbato
<lu_zero@gentoo.org>
Fri, 20 Dec 2013 16:44:20 +0000
(17:44 +0100)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/jvdec.c
patch
|
blob
|
history
diff --git
a/libavformat/jvdec.c
b/libavformat/jvdec.c
index
caf29a8
..
6bf220f
100644
(file)
--- a/
libavformat/jvdec.c
+++ b/
libavformat/jvdec.c
@@
-59,6
+59,15
@@
static int read_probe(AVProbeData *pd)
return 0;
}
+static int read_close(AVFormatContext *s)
+{
+ JVDemuxContext *jv = s->priv_data;
+
+ av_freep(&jv->frames);
+
+ return 0;
+}
+
static int read_header(AVFormatContext *s)
{
JVDemuxContext *jv = s->priv_data;
@@
-229,4
+238,5
@@
AVInputFormat ff_jv_demuxer = {
.read_header = read_header,
.read_packet = read_packet,
.read_seek = read_seek,
+ .read_close = read_close,
};