From 21c5aca65a1785dcad05e1946763786714d6656b Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Tue, 21 Mar 2006 00:18:30 +0000 Subject: [PATCH] free ftyp atom Originally committed as revision 5187 to svn://svn.ffmpeg.org/ffmpeg/trunk --- qt-faststart.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt-faststart.c b/qt-faststart.c index 535dde3655..2fc5a161cc 100644 --- a/qt-faststart.c +++ b/qt-faststart.c @@ -288,6 +288,8 @@ int main(int argc, char *argv[]) fclose(infile); fclose(outfile); free(moov_atom); + if (ftyp_atom_size > 0) + free(ftyp_atom); return 0; @@ -295,5 +297,7 @@ error_out: fclose(infile); fclose(outfile); free(moov_atom); + if (ftyp_atom_size > 0) + free(ftyp_atom); return 1; }