diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2010-02-28 20:49:21 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2010-02-28 20:49:21 +0000 |
commit | 27dbc47c05e07486feba1ab829db584da2159648 (patch) | |
tree | f92670f5aa02f3aa6c63eb778920d717cefa2de3 /libavformat/nutenc.c | |
parent | fee6faa2b67fca0cf0889165cfa64b02fc8d395b (diff) | |
download | ffmpeg-27dbc47c05e07486feba1ab829db584da2159648.tar.gz |
Plug some memory leaks in NUT muxer and demuxer
Originally committed as revision 22120 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r-- | libavformat/nutenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 03d3712638..8509aa2faa 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -797,6 +797,9 @@ static int write_trailer(AVFormatContext *s){ while(nut->header_count<3) write_headers(nut, bc); put_flush_packet(bc); + av_freep(&nut->stream); + av_freep(&nut->time_base); + av_tree_destroy_free_elem(nut->syncpoints); return 0; } |