From 2cfb92330f1628b9394952d7e11d58a0d6771099 Mon Sep 17 00:00:00 2001 From: Tautvis Date: Tue, 13 Jan 2026 15:06:49 +0200 Subject: [PATCH] glx: glxext fix memory leak when calling DestroyPixmap Call dixDestroyPixmap instead pScreen->DestroyPixmap, which is correct call to free resources as since cece84fa93b17275dfebb729e7ab443344f52cd4 the Screen->DestroyPixmap function is no longer wrapped. Fixes: https://github.com/X11Libre/xserver/issues/1809 Signed-off-By: Tautvis --- glx/glxext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glx/glxext.c b/glx/glxext.c index cab58f8f73..a52e99529d 100644 --- a/glx/glxext.c +++ b/glx/glxext.c @@ -126,7 +126,7 @@ DrawableGone(__GLXdrawable * glxPriv, XID xid) /* drop our reference to any backing pixmap */ if (glxPriv->type == GLX_DRAWABLE_PIXMAP) - glxPriv->pDraw->pScreen->DestroyPixmap((PixmapPtr) glxPriv->pDraw); + dixDestroyPixmap((PixmapPtr)glxPriv->pDraw, 0); glxPriv->destroy(glxPriv);