Mercurial > libavformat.hg
changeset 5729:aef0883e3445 libavformat
Plug some memory leaks in NUT muxer and demuxer
author | vitor |
---|---|
date | Sun, 28 Feb 2010 20:49:21 +0000 |
parents | 16fec79d308d |
children | de3bbecc27ad |
files | nutdec.c nutenc.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/nutdec.c Sun Feb 28 18:37:09 2010 +0000 +++ b/nutdec.c Sun Feb 28 20:49:21 2010 +0000 @@ -897,9 +897,13 @@ static int nut_read_close(AVFormatContext *s) { NUTContext *nut = s->priv_data; + int i; av_freep(&nut->time_base); av_freep(&nut->stream); + av_tree_destroy_free_elem(nut->syncpoints); + for(i = 1; i < nut->header_count; i++) + av_freep(&nut->header[i]); return 0; }