aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-16 22:53:18 +0000
committerGravatar pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-16 22:53:18 +0000
commita06c8c3796fca45bab6aa92e3e55f75e125dad55 (patch)
treef409a56e85682a7342627d96d07cc75bc4dfe7a6
parent0020017268528f62835064895284c9ed21167f4f (diff)
fix memleak again
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7767 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libvo/vo_xv.c1
-rw-r--r--libvo/x11_common.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 5b31e53d06..32601233cb 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -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
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 4774ce56a0..5bdfc35abc 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -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){