memleak patch by (Gildas Bazin <gbazin at altern dot org>)

Originally committed as revision 2678 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Gildas Bazin
2004-01-08 19:01:16 +00:00
committed by Michael Niedermayer
parent 303aebf97a
commit ec7d0d2e9e
2 changed files with 6 additions and 1 deletions

View File

@ -893,6 +893,8 @@ static int mov_write_trailer(AVFormatContext *s)
av_free(mov->tracks[i].cluster[j]);
}
av_free(mov->tracks[i].cluster);
if( mov->tracks[i].vosLen ) av_free( mov->tracks[i].vosData );
mov->tracks[i].cluster = NULL;
mov->tracks[i].ents_allocated = mov->tracks[i].entry = 0;
}