From 37d2db4398b64619322dc0cec1202ae16275b803 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 11 Jun 2025 17:44:28 -0700 Subject: [PATCH] Revert "miext: use dixDestroyPixmap() instead of direct driver call" This reverts commit 372a510ef0c69ba65e8da6b422eae970fe3034b2. Part-of: --- miext/shadow/shadow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miext/shadow/shadow.c b/miext/shadow/shadow.c index c0f08780a..cecedee7d 100644 --- a/miext/shadow/shadow.c +++ b/miext/shadow/shadow.c @@ -103,7 +103,8 @@ shadowCloseScreen(ScreenPtr pScreen) unwrap(pBuf, pScreen, BlockHandler); shadowRemove(pScreen, pBuf->pPixmap); DamageDestroy(pBuf->pDamage); - dixDestroyPixmap(pBuf->pPixmap, 0); + if (pBuf->pPixmap) + pScreen->DestroyPixmap(pBuf->pPixmap); free(pBuf); return pScreen->CloseScreen(pScreen); }