[Mplayer-cvslog] CVS: main/libmpcodecs ad_libvorbis.c, 1.14, 1.15 vf_palette.c, 1.11, 1.12
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Thu Oct 14 17:09:36 CEST 2004
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv3377/libmpcodecs
Modified Files:
ad_libvorbis.c vf_palette.c
Log Message:
some memory leaks fixed
Index: ad_libvorbis.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_libvorbis.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- ad_libvorbis.c 18 Sep 2004 04:20:13 -0000 1.14
+++ ad_libvorbis.c 14 Oct 2004 15:09:33 -0000 1.15
@@ -164,6 +164,7 @@
static void uninit(sh_audio_t *sh)
{
struct ov_struct_st *ov = sh->context;
+ vorbis_dsp_clear(&ov->vd);
vorbis_block_clear(&ov->vb);
vorbis_info_clear(&ov->vi);
free(ov);
Index: vf_palette.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_palette.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- vf_palette.c 23 Nov 2003 17:09:59 -0000 1.11
+++ vf_palette.c 14 Oct 2004 15:09:33 -0000 1.12
@@ -163,9 +163,14 @@
return vf->next->query_format(vf->next,best);
}
+static void uninit(vf_instance_t *vf) {
+ free(vf->priv);
+}
+
static int open(vf_instance_t *vf, char* args){
unsigned int i;
vf->config=config;
+ vf->uninit=uninit;
vf->put_image=put_image;
vf->query_format=query_format;
vf->priv=malloc(sizeof(struct vf_priv_s));
More information about the MPlayer-cvslog
mailing list