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;