# HG changeset patch # User alex # Date 1051211266 0 # Node ID 99b58133c3760e5315c00c207000d723dd8a0226 # Parent 7bd7a1aa605fd8789ff5738a49ee88a1afe76c79 memleak fix by Raindel Shachar diff -r 7bd7a1aa605f -r 99b58133c376 libvo/vo_xv.c --- a/libvo/vo_xv.c Thu Apr 24 18:55:43 2003 +0000 +++ b/libvo/vo_xv.c Thu Apr 24 19:07:46 2003 +0000 @@ -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