changeset 7766:52171f231d4d

fix memleak again
author pontscho
date Wed, 16 Oct 2002 22:53:18 +0000
parents dbf1e5cfadbd
children c4a30ecfe1ec
files libvo/vo_xv.c libvo/x11_common.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xv.c	Wed Oct 16 22:44:09 2002 +0000
+++ b/libvo/vo_xv.c	Wed Oct 16 22:53:18 2002 +0000
@@ -705,6 +705,7 @@
 {
  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
--- a/libvo/x11_common.c	Wed Oct 16 22:44:09 2002 +0000
+++ b/libvo/x11_common.c	Wed Oct 16 22:53:18 2002 +0000
@@ -488,6 +488,7 @@
     {
 	if(vo_gc){
 	  XSetBackground( mDisplay,vo_gc,0 );
+	  XFreeGC( mDisplay,vo_gc );
 	  vo_gc=NULL;
 	}
 	if(vo_window!=None){