[MPlayer-dev-eng] [Patch]demux_real.c memleak
Wei Jiang
jiangw98 at yahoo.com
Mon Nov 1 01:39:29 CET 2004
A simple patch to free index data allocated
diff -u -r1.61 demux_real.c
--- libmpdemux/demux_real.c 10 Aug 2004 20:13:44 -0000 1.61
+++ libmpdemux/demux_real.c 1 Nov 2004 00:37:06 -0000
@@ -1516,11 +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;
}
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
More information about the MPlayer-dev-eng
mailing list