[MPlayer-cvslog] CVS: main/libmpdemux demux_real.c,1.79,1.80

Roberto Togni CVS syncmail at mplayerhq.hu
Thu Jan 5 00:36:38 CET 2006


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv27928

Modified Files:
	demux_real.c 
Log Message:
Don't leak memory (free audio reordering buffers)


Index: demux_real.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_real.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- demux_real.c	4 Jan 2006 22:49:23 -0000	1.79
+++ demux_real.c	4 Jan 2006 23:36:36 -0000	1.80
@@ -1804,6 +1804,10 @@
     	for(i=0; i<MAX_STREAMS; i++)
 	    if(priv->index_table[i])
 	        free(priv->index_table[i]);
+    if (priv->audio_buf)
+        free(priv->audio_buf);
+    if (priv->audio_timestamp)
+        free(priv->audio_timestamp);
 	free(priv);
     }
 




More information about the MPlayer-cvslog mailing list