Originally committed as revision 22120 to svn://svn.ffmpeg.org/ffmpeg/trunk
static int nut_read_close(AVFormatContext *s)
{
NUTContext *nut = s->priv_data;
static int nut_read_close(AVFormatContext *s)
{
NUTContext *nut = s->priv_data;
av_freep(&nut->time_base);
av_freep(&nut->stream);
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]);
while(nut->header_count<3)
write_headers(nut, bc);
put_flush_packet(bc);
while(nut->header_count<3)
write_headers(nut, bc);
put_flush_packet(bc);
+ av_freep(&nut->stream);
+ av_freep(&nut->time_base);
+ av_tree_destroy_free_elem(nut->syncpoints);