mirror of https://github.com/mpv-player/mpv
fix memleak again
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7767 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0020017268
commit
a06c8c3796
|
@ -705,6 +705,7 @@ static void uninit(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
if ( !vo_config_count ) return;
|
if ( !vo_config_count ) return;
|
||||||
|
free( ai );
|
||||||
saver_on(mDisplay); // screen saver back on
|
saver_on(mDisplay); // screen saver back on
|
||||||
for( i=0;i<num_buffers;i++ ) deallocate_xvimage( i );
|
for( i=0;i<num_buffers;i++ ) deallocate_xvimage( i );
|
||||||
#ifdef HAVE_XF86VM
|
#ifdef HAVE_XF86VM
|
||||||
|
|
|
@ -488,6 +488,7 @@ void vo_x11_uninit()
|
||||||
{
|
{
|
||||||
if(vo_gc){
|
if(vo_gc){
|
||||||
XSetBackground( mDisplay,vo_gc,0 );
|
XSetBackground( mDisplay,vo_gc,0 );
|
||||||
|
XFreeGC( mDisplay,vo_gc );
|
||||||
vo_gc=NULL;
|
vo_gc=NULL;
|
||||||
}
|
}
|
||||||
if(vo_window!=None){
|
if(vo_window!=None){
|
||||||
|
|
Loading…
Reference in New Issue