mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-27 07:23:40 +00:00
Xext: saver: extra NULL pointer protection in UninstallSaverColormap()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
acedb6c34c
commit
1813f35a2a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue