[Mplayer-cvslog] CVS: main/libmpdemux demux_ogg.c,1.15,1.16
Arpi of Ize
arpi at mplayerhq.hu
Wed Oct 16 22:34:43 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv11605
Modified Files:
demux_ogg.c
Log Message:
more memleak fixes
Index: demux_ogg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ogg.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- demux_ogg.c 16 Oct 2002 20:17:20 -0000 1.15
+++ demux_ogg.c 16 Oct 2002 20:34:40 -0000 1.16
@@ -416,6 +416,7 @@
/// Error
if(np < 0) {
mp_msg(MSGT_DEMUX,MSGL_DBG2,"OGG demuxer : Bad page sync\n");
+ ogg_sync_destroy(sync);
free(ogg_d);
return 0;
}
@@ -425,6 +426,7 @@
buf = ogg_sync_buffer(sync,BLOCK_SIZE);
len = stream_read(s,buf,BLOCK_SIZE);
if(len == 0 && s->eof) {
+ ogg_sync_destroy(sync);
free(ogg_d);
return 0;
}
More information about the MPlayer-cvslog
mailing list