Fix a leak of a region when the driver's CheckComposite fails.
This commit is contained in:
parent
8a1bee8ea9
commit
6eaca06dac
|
@ -445,6 +445,7 @@ kaaTryDriverComposite(CARD8 op,
|
||||||
if (pKaaScr->info->CheckComposite &&
|
if (pKaaScr->info->CheckComposite &&
|
||||||
!(*pKaaScr->info->CheckComposite) (op, pSrc, pMask, pDst))
|
!(*pKaaScr->info->CheckComposite) (op, pSrc, pMask, pDst))
|
||||||
{
|
{
|
||||||
|
REGION_UNINIT(pDst->pDrawable->pScreen, ®ion);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue