wtvdec: fix a few memleaks as show by valgrind with the FATE test.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
Reimar Döffinger 2012-01-12 00:50:48 +01:00
parent bb4c18881a
commit 742b660eb7

View File

@ -287,6 +287,8 @@ static void wtvfile_close(AVIOContext *pb)
{
WtvFile *wf = pb->opaque;
av_free(wf->sectors);
av_freep(&pb->opaque);
av_freep(&pb->buffer);
av_free(pb);
}