[Mplayer-cvslog] CVS: main mplayer.c,1.729,1.730
pl CVS
pl at mplayerhq.hu
Mon Sep 29 11:54:16 CEST 2003
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv8434
Modified Files:
mplayer.c
Log Message:
fix a memory leak when playing several files in a row (playlist for instance)
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.729
retrieving revision 1.730
diff -u -r1.729 -r1.730
--- mplayer.c 27 Sep 2003 20:01:46 -0000 1.729
+++ mplayer.c 29 Sep 2003 09:53:27 -0000 1.730
@@ -1270,8 +1270,14 @@
stream=NULL;
demuxer=NULL;
- d_audio=NULL;
- d_video=NULL;
+ if (d_audio) {
+ free_demuxer_stream(d_audio);
+ d_audio=NULL;
+ }
+ if (d_video) {
+ free_demuxer_stream(d_video);
+ d_video=NULL;
+ }
sh_audio=NULL;
sh_video=NULL;
More information about the MPlayer-cvslog
mailing list