Mercurial > mplayer.hg
changeset 13837:3041b42a82fd
Memleak fix: free index data at demuxer_close
Patch by Wei Jiang ( jiangw98 at yahoo dot com )
author | rtognimp |
---|---|
date | Mon, 01 Nov 2004 13:49:07 +0000 |
parents | 56b6bbe2ebca |
children | cedde9834a7a |
files | libmpdemux/demux_real.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_real.c Mon Nov 01 13:24:37 2004 +0000 +++ b/libmpdemux/demux_real.c Mon Nov 01 13:49:07 2004 +0000 @@ -1516,10 +1516,15 @@ void demux_close_real(demuxer_t *demuxer) { + int i; real_priv_t* priv = demuxer->priv; - if (priv) + if (priv){ + for(i=0; i<MAX_STREAMS; i++) + if(priv->index_table[i]) + free(priv->index_table[i]); free(priv); + } return; }