1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

wtv: fix memleaks during normal operation

This commit is contained in:
Janne Grunau 2012-01-11 01:34:30 +01:00
parent f6a152db11
commit 68e252f548

View File

@ -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;
}