Skip to content
Snippets Groups Projects
Commit e518cb86 authored by Paul B Mahol's avatar Paul B Mahol Committed by Luca Barbato
Browse files

jvdec: Fix memory leak of jv->frames


Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
parent 027712e8
No related branches found
No related tags found
No related merge requests found
......@@ -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,
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment