Commit 68e252f5 authored by Janne Grunau's avatar Janne Grunau

wtv: fix memleaks during normal operation

parent f6a152db
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment