aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorGildas Bazin <gbazi@altern.org>2004-01-08 19:01:16 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-01-08 19:01:16 +0000
commitec7d0d2e9ec9c9e5ed6df5446c11ede90d602928 (patch)
treee1d2af23d172490b52d3d309a10328cece32b784 /libavformat/movenc.c
parent303aebf97a1537185aa47f262eb9d756b0e315a7 (diff)
downloadffmpeg-ec7d0d2e9ec9c9e5ed6df5446c11ede90d602928.tar.gz
memleak patch by (Gildas Bazin <gbazin at altern dot org>)
Originally committed as revision 2678 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 28e49e3fb6..104f176716 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -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;
}