[MPlayer-cvslog] r22221 - trunk/libvo/vo_xvmc.c

reimar subversion at mplayerhq.hu
Thu Feb 15 01:46:45 CET 2007


Author: reimar
Date: Thu Feb 15 01:46:45 2007
New Revision: 22221

Modified:
   trunk/libvo/vo_xvmc.c

Log:
Fix two 10l memleaks in vo_xvmc.c


Modified: trunk/libvo/vo_xvmc.c
==============================================================================
--- trunk/libvo/vo_xvmc.c	(original)
+++ trunk/libvo/vo_xvmc.c	Thu Feb 15 01:46:45 2007
@@ -318,12 +318,14 @@
 	 XFree(mc_surf_list);//if mc_surf_num==0 is list==NULL ?
       }//for ports
    }//for adaptors
+   XvFreeAdaptorInfo(ai);
 
    if(!query) printf("vo_xvmc: Could not find free matching surface. Sorry.\n");
    return 0;
 
 // somebody know cleaner way to escape from 3 internal loops?
 surface_found:
+   XvFreeAdaptorInfo(ai);
 
    memcpy(surf_info,&mc_surf_list[s],sizeof(XvMCSurfaceInfo));
    if( mp_msg_test(MSGT_VO,MSGL_DBG3) || !query)
@@ -804,6 +806,7 @@
       if(rez!=Success){
          printf("vo_xvmc: Setting palette failed.\n");
       }
+      free(palette);
    }
 }
 



More information about the MPlayer-cvslog mailing list