Mercurial > mplayer.hg
changeset 9981:99b58133c376
memleak fix by Raindel Shachar <raindel@techunix.technion.ac.il>
author | alex |
---|---|
date | Thu, 24 Apr 2003 19:07:46 +0000 |
parents | 7bd7a1aa605f |
children | cd76f332bdee |
files | libvo/vo_xv.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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<num_buffers;i++ ) deallocate_xvimage( i ); #ifdef HAVE_XF86VM