summaryrefslogtreecommitdiff
path: root/hw/kdrive/src
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-01-25 01:40:18 +0000
committerEric Anholt <anholt@freebsd.org>2005-01-25 01:40:18 +0000
commit6eaca06dac037851ae5c9575048faf932ad5ffc8 (patch)
tree7364bc43ff30e3ef3e321477d9dc66e8d2d3cca2 /hw/kdrive/src
parent8a1bee8ea9a028eef65b8884f73a79fbe84a9f3a (diff)
Fix a leak of a region when the driver's CheckComposite fails.
Diffstat (limited to 'hw/kdrive/src')
-rw-r--r--hw/kdrive/src/kaapict.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/kdrive/src/kaapict.c b/hw/kdrive/src/kaapict.c
index 1918b78df..1e4d2ef61 100644
--- a/hw/kdrive/src/kaapict.c
+++ b/hw/kdrive/src/kaapict.c
@@ -445,6 +445,7 @@ kaaTryDriverComposite(CARD8 op,
if (pKaaScr->info->CheckComposite &&
!(*pKaaScr->info->CheckComposite) (op, pSrc, pMask, pDst))
{
+ REGION_UNINIT(pDst->pDrawable->pScreen, &region);
return -1;
}