[Mplayer-cvslog] CVS: main/libvo vo_xv.c,1.138,1.139

Alex Beregszaszi alex at mplayerhq.hu
Thu Apr 24 21:08:07 CEST 2003


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

Modified Files:
	vo_xv.c 
Log Message:
memleak fix by Raindel Shachar <raindel at techunix.technion.ac.il>

Index: vo_xv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xv.c,v
retrieving revision 1.138
retrieving revision 1.139
diff -u -r1.138 -r1.139
--- vo_xv.c	2 Mar 2003 21:09:15 -0000	1.138
+++ vo_xv.c	24 Apr 2003 19:07:46 -0000	1.139
@@ -58,7 +58,7 @@
 static void allocate_xvimage(int);
 static unsigned int ver,rel,req,ev,err;
 static unsigned int formats, adaptors,i,xv_port,xv_format;
-static XvAdaptorInfo        *ai;
+static XvAdaptorInfo        *ai = NULL;
 static XvImageFormatValues  *fo;
 
 static int current_buf=0;
@@ -728,7 +728,8 @@
 {
  int i;
  if ( !vo_config_count ) return;
- free( ai );
+ XvFreeAdaptorInfo(ai);
+ ai = NULL;
  saver_on(mDisplay); // screen saver back on
  for( i=0;i<num_buffers;i++ ) deallocate_xvimage( i );
 #ifdef HAVE_XF86VM



More information about the MPlayer-cvslog mailing list