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

Eric Anholt <xserver-commit-u7BhqnqprCWvj1b/[email protected]>
Newsgroups gmane.comp.freedesktop.xserver.cvs
Message-ID <[email protected]>
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;
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.