comparison mov.c @ 3478:a9e3cae54bf1 libavformat

free private streamcontext when closing demuxer, fix memory leak, patch by Art Clarke, aclarke at vlideshow dot com
author bcoudurier
date Wed, 18 Jun 2008 08:30:50 +0000
parents 7a0230981402
children 2f191d610db9
comparison
equal deleted inserted replaced
3477:8adaa9258dba 3478:a9e3cae54bf1
1897 for (j=0; j<sc->drefs_count; j++) 1897 for (j=0; j<sc->drefs_count; j++)
1898 av_freep(&sc->drefs[j].path); 1898 av_freep(&sc->drefs[j].path);
1899 av_freep(&sc->drefs); 1899 av_freep(&sc->drefs);
1900 if (sc->pb && sc->pb != s->pb) 1900 if (sc->pb && sc->pb != s->pb)
1901 url_fclose(sc->pb); 1901 url_fclose(sc->pb);
1902 av_freep(&sc);
1902 } 1903 }
1903 if(mov->dv_demux){ 1904 if(mov->dv_demux){
1904 for(i=0; i<mov->dv_fctx->nb_streams; i++){ 1905 for(i=0; i<mov->dv_fctx->nb_streams; i++){
1905 av_freep(&mov->dv_fctx->streams[i]->codec); 1906 av_freep(&mov->dv_fctx->streams[i]->codec);
1906 av_freep(&mov->dv_fctx->streams[i]); 1907 av_freep(&mov->dv_fctx->streams[i]);