mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 12:40:01 +00:00
jvdec: fix memleak of jv->frames
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
9d0c71e5e3
commit
596814f978
@ -216,6 +216,15 @@ static int read_seek(AVFormatContext *s, int stream_index,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int read_close(AVFormatContext *s)
|
||||
{
|
||||
JVDemuxContext *jv = s->priv_data;
|
||||
|
||||
av_freep(&jv->frames);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
AVInputFormat ff_jv_demuxer = {
|
||||
.name = "jv",
|
||||
.long_name = NULL_IF_CONFIG_SMALL("Bitmap Brothers JV"),
|
||||
@ -224,4 +233,5 @@ AVInputFormat ff_jv_demuxer = {
|
||||
.read_header = read_header,
|
||||
.read_packet = read_packet,
|
||||
.read_seek = read_seek,
|
||||
.read_close = read_close,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user