Mercurial > libavformat.hg
diff nutdec.c @ 5729:aef0883e3445 libavformat
Plug some memory leaks in NUT muxer and demuxer
| author | vitor |
|---|---|
| date | Sun, 28 Feb 2010 20:49:21 +0000 |
| parents | 6b9c2a6d8fa4 |
| children | 12baf46105f4 |
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; }
