mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
Plug memory leak in NUT muxer and demuxer
Originally committed as revision 22174 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -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},
|
||||
|
Reference in New Issue
Block a user