xserver/hw/kdrive/src kaapict.c,1.13,1.14

Eric Anholt xserver-commit@pdx.freedesktop.org
Mon Jan 24 17:40:20 PST 2005


Committed by: anholt

Update of /cvs/xserver/xserver/hw/kdrive/src
In directory gabe:/tmp/cvs-serv29185/hw/kdrive/src

Modified Files:
	kaapict.c 
Log Message:
Fix a leak of a region when the driver's CheckComposite fails.


Index: kaapict.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/kdrive/src/kaapict.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- kaapict.c	11 Sep 2004 09:23:12 -0000	1.13
+++ kaapict.c	25 Jan 2005 01:40:18 -0000	1.14
@@ -445,6 +445,7 @@
     if (pKaaScr->info->CheckComposite &&
 	!(*pKaaScr->info->CheckComposite) (op, pSrc, pMask, pDst))
     {
+	REGION_UNINIT(pDst->pDrawable->pScreen, &region);
 	return -1;
     }
 



More information about the xserver-commit mailing list