From 372a510ef0c69ba65e8da6b422eae970fe3034b2 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 30 Sep 2024 17:55:50 +0200 Subject: [PATCH] miext: use dixDestroyPixmap() instead of direct driver call Direct calls to ScreenRec->DestroyPixmap() blocks cleaning up the wrapping jungle, so use the proper dix function instead. See: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1754 Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- miext/shadow/shadow.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/miext/shadow/shadow.c b/miext/shadow/shadow.c index cecedee7d..c0f08780a 100644 --- a/miext/shadow/shadow.c +++ b/miext/shadow/shadow.c @@ -103,8 +103,7 @@ shadowCloseScreen(ScreenPtr pScreen) unwrap(pBuf, pScreen, BlockHandler); shadowRemove(pScreen, pBuf->pPixmap); DamageDestroy(pBuf->pDamage); - if (pBuf->pPixmap) - pScreen->DestroyPixmap(pBuf->pPixmap); + dixDestroyPixmap(pBuf->pPixmap, 0); free(pBuf); return pScreen->CloseScreen(pScreen); }