Revert "Xext: saver: use dixDestroyPixmap() instead of direct driver call"
This reverts commit 7ce19233bc.
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2020>
This commit is contained in:
parent
babe8e429d
commit
60a224e457
|
|
@ -277,10 +277,13 @@ setEventMask(ScreenPtr pScreen, ClientPtr client, unsigned long mask)
|
|||
static void
|
||||
FreeAttrs(ScreenSaverAttrPtr pAttr)
|
||||
{
|
||||
PixmapPtr pPixmap;
|
||||
CursorPtr pCursor;
|
||||
|
||||
dixDestroyPixmap(pAttr->pBackgroundPixmap, 0);
|
||||
dixDestroyPixmap(pAttr->pBorderPixmap, 0);
|
||||
if ((pPixmap = pAttr->pBackgroundPixmap) != 0)
|
||||
(*pPixmap->drawable.pScreen->DestroyPixmap) (pPixmap);
|
||||
if ((pPixmap = pAttr->pBorderPixmap) != 0)
|
||||
(*pPixmap->drawable.pScreen->DestroyPixmap) (pPixmap);
|
||||
if ((pCursor = pAttr->pCursor) != 0)
|
||||
FreeCursor(pCursor, (Cursor) 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue