Memleak fix: free index data at demuxer_close

Patch by Wei Jiang ( jiangw98 at yahoo dot com )


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13838 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2004-11-01 13:49:07 +00:00
parent c862aa09db
commit a10c321342
1 changed files with 6 additions and 1 deletions

View File

@ -1516,10 +1516,15 @@ header_end:
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;
}