From 1813f35a2ad7aaec03bc6b67cfcdc9740646dbf9 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 29 Apr 2026 12:52:49 +0200 Subject: [PATCH] Xext: saver: extra NULL pointer protection in UninstallSaverColormap() Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/saver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xext/saver.c b/Xext/saver.c index 891f9046df..60a66555ba 100644 --- a/Xext/saver.c +++ b/Xext/saver.c @@ -466,7 +466,7 @@ UninstallSaverColormap(ScreenPtr pScreen) int rc = dixLookupResourceByType((void **) &pCmap, pPriv->installedMap, X11_RESTYPE_COLORMAP, serverClient, DixUninstallAccess); - if (rc == Success) { + if ((rc == Success) && (pCmap->pScreen) && (pCmap->pScreen->UninstallColormap)) { (*pCmap->pScreen->UninstallColormap) (pCmap); } pPriv->installedMap = None;