[Mplayer-cvslog] CVS: main/libvo video_out.c,1.69,1.70
    Alex Beregszaszi 
    alex at mplayerhq.hu
       
    Sat May 31 19:32:27 CEST 2003
    
    
  
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv27233
Modified Files:
	video_out.c 
Log Message:
unleak
Index: video_out.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/video_out.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- video_out.c	1 May 2003 20:35:56 -0000	1.69
+++ video_out.c	31 May 2003 17:32:23 -0000	1.70
@@ -227,10 +227,14 @@
 	    if(!strcmp(info->short_name,vo)){
 		// name matches, try it
 		if(!video_driver->preinit(vo_subdevice))
+		{
+		    free(vo);
 		    return video_driver; // success!
+		}
 	    }
 	}
         // continue...
+	free(vo);
 	++vo_list;
 	if(!(vo_list[0])) return NULL; // do NOT fallback to others
       }
    
    
More information about the MPlayer-cvslog
mailing list