aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo
diff options
context:
space:
mode:
authorGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-24 19:07:46 +0000
committerGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-24 19:07:46 +0000
commit540477f9ed03cb2095869ab83473f57689afd86a (patch)
tree90c38c8d84c5a84afe6e23307dbe31e65642860c /libvo
parent3b929613b52c401b6288af159bfb05b2c64bb58b (diff)
memleak fix by Raindel Shachar <raindel@techunix.technion.ac.il>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9982 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_xv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index e8e9054833..a5dbc13749 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -58,7 +58,7 @@ LIBVO_EXTERN(xv)
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 @@ static void uninit(void)
{
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