summaryrefslogtreecommitdiff
path: root/libavformat/nut.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2010-03-03 17:31:24 +0000
committerVitor Sessak <vitor1001@gmail.com>2010-03-03 17:31:24 +0000
commit4b83fc0fe414dc7959a5511fcdce320ad90ac7ba (patch)
tree649182f9e748b1e89ee8ca694bb0a1be09972e3c /libavformat/nut.c
parent1f6d0d42c53cde5e33e92c4529b774c256157f89 (diff)
downloadffmpeg-4b83fc0fe414dc7959a5511fcdce320ad90ac7ba.tar.gz
Plug memory leak in NUT muxer and demuxer
Originally committed as revision 22174 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nut.c')
-rw-r--r--libavformat/nut.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/nut.c b/libavformat/nut.c
index be6bcf6a42..d969bbc526 100644
--- a/libavformat/nut.c
+++ b/libavformat/nut.c
@@ -69,6 +69,17 @@ void ff_nut_add_sp(NUTContext *nut, int64_t pos, int64_t back_ptr, int64_t ts){
}
}
+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},