Xext: saver: extra NULL pointer protection in UninstallSaverColormap()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2026-04-29 12:52:49 +02:00 • committed by Enrico Weigelt
commit 1813f35a2a

View file

@ -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;