From a6e904fc5f3b6d73bec4c61c004b45ff255fcf48 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 2 Oct 2024 17:24:07 +0200 Subject: [PATCH] (!1711) glx: 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 --- glx/glxcmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glx/glxcmds.c b/glx/glxcmds.c index 64dcd6b81..7ef21460a 100644 --- a/glx/glxcmds.c +++ b/glx/glxcmds.c @@ -1398,7 +1398,7 @@ DoCreatePbuffer(ClientPtr client, int screenNum, XID fbconfigId, err = XaceHookResourceAccess(client, glxDrawableId, X11_RESTYPE_PIXMAP, pPixmap, X11_RESTYPE_NONE, NULL, DixCreateAccess); if (err != Success) { - (*pGlxScreen->pScreen->DestroyPixmap) (pPixmap); + dixDestroyPixmap(pPixmap, 0); return err; }