Mercurial > libavformat.hg
diff nut.c @ 5738:7152149eb03f libavformat
Plug memory leak in NUT muxer and demuxer
| author | vitor |
|---|---|
| date | Wed, 03 Mar 2010 17:31:24 +0000 |
| parents | 6b9c2a6d8fa4 |
| children | 01b33a7f96ee |
line wrap: on
line diff
--- a/nut.c Wed Mar 03 17:26:00 2010 +0000 +++ b/nut.c Wed Mar 03 17:31:24 2010 +0000 @@ -69,6 +69,17 @@ } } +static void enu_free(void *opaque, void *elem) +{ + av_free(elem); +} + +void ff_nut_free_sp(NUTContext *nut) +{ + av_tree_enumerate(nut->syncpoints, NULL, NULL, enu_free); + av_tree_destroy(nut->syncpoints); +} + const Dispositions ff_nut_dispositions[] = { {"default" , AV_DISPOSITION_DEFAULT}, {"dub" , AV_DISPOSITION_DUB},
