mirror of https://github.com/mpv-player/mpv
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:
parent
c862aa09db
commit
a10c321342
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue