fix memleak again

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7767 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2002-10-16 22:53:18 +00:00
parent 0020017268
commit a06c8c3796
2 changed files with 2 additions and 0 deletions

View File

@ -705,6 +705,7 @@ static void uninit(void)
{
int i;
if ( !vo_config_count ) return;
free( ai );
saver_on(mDisplay); // screen saver back on
for( i=0;i<num_buffers;i++ ) deallocate_xvimage( i );
#ifdef HAVE_XF86VM

View File

@ -488,6 +488,7 @@ void vo_x11_uninit()
{
if(vo_gc){
XSetBackground( mDisplay,vo_gc,0 );
XFreeGC( mDisplay,vo_gc );
vo_gc=NULL;
}
if(vo_window!=None){