Mercurial > libavformat.hg
comparison utils.c @ 5753:2e5aecabfb1e libavformat
Fix memory leak in NUT muxer
| author | vitor |
|---|---|
| date | Fri, 05 Mar 2010 17:26:34 +0000 |
| parents | 16fec79d308d |
| children | dbc61b2840eb |
comparison
equal
deleted
inserted
replaced
| 5752:cb840f900fef | 5753:2e5aecabfb1e |
|---|---|
| 2863 if(s->oformat->write_trailer) | 2863 if(s->oformat->write_trailer) |
| 2864 ret = s->oformat->write_trailer(s); | 2864 ret = s->oformat->write_trailer(s); |
| 2865 fail: | 2865 fail: |
| 2866 if(ret == 0) | 2866 if(ret == 0) |
| 2867 ret=url_ferror(s->pb); | 2867 ret=url_ferror(s->pb); |
| 2868 for(i=0;i<s->nb_streams;i++) | 2868 for(i=0;i<s->nb_streams;i++) { |
| 2869 av_freep(&s->streams[i]->priv_data); | 2869 av_freep(&s->streams[i]->priv_data); |
| 2870 av_freep(&s->streams[i]->index_entries); | |
| 2871 } | |
| 2870 av_freep(&s->priv_data); | 2872 av_freep(&s->priv_data); |
| 2871 return ret; | 2873 return ret; |
| 2872 } | 2874 } |
| 2873 | 2875 |
| 2874 void av_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx) | 2876 void av_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx) |
