[Mplayer-cvslog] CVS: main/libmpcodecs vf_pp.c,1.20,1.21

Arpi of Ize arpi at mplayerhq.hu
Thu Dec 19 23:34:17 CET 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv28683

Modified Files:
	vf_pp.c 
Log Message:
fixed memleak caused by multiple config() calls - thx Gabu


Index: vf_pp.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_pp.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- vf_pp.c	6 Nov 2002 23:54:24 -0000	1.20
+++ vf_pp.c	19 Dec 2002 22:33:59 -0000	1.21
@@ -37,6 +37,7 @@
 static int config(struct vf_instance_s* vf,
         int width, int height, int d_width, int d_height,
 	unsigned int voflags, unsigned int outfmt){
+    if(vf->priv->context) pp_free_context(vf->priv->context);
     vf->priv->context= pp_get_context(width, height,
           (gCpuCaps.hasMMX   ? PP_CPU_CAPS_MMX   : 0)
 	| (gCpuCaps.hasMMX2  ? PP_CPU_CAPS_MMX2  : 0)




More information about the MPlayer-cvslog mailing list