mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 07:18:05 +02:00
Don't try to destroy a NULL pixmap.
This commit is contained in:
parent
613ce09550
commit
4e1f9f51a9
1 changed files with 1 additions and 1 deletions
|
|
@ -1312,8 +1312,8 @@ CreatePmap:
|
||||||
}
|
}
|
||||||
if (AddResource(stuff->pid, RT_PIXMAP, (pointer)pMap))
|
if (AddResource(stuff->pid, RT_PIXMAP, (pointer)pMap))
|
||||||
return(client->noClientException);
|
return(client->noClientException);
|
||||||
|
(*pDraw->pScreen->DestroyPixmap)(pMap);
|
||||||
}
|
}
|
||||||
(*pDraw->pScreen->DestroyPixmap)(pMap);
|
|
||||||
return (BadAlloc);
|
return (BadAlloc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue