mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
render: use dixDestroyPixmap() instead of direct driver call
Direct calls to ScreenRec->DestroyPixmap() blocks cleaning up the wrapping jungle, so use the proper dix function instead. See: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1754 Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1711>
This commit is contained in:
@@ -1137,7 +1137,7 @@ ProcRenderAddGlyphs(ClientPtr client)
|
||||
|
||||
/* The picture takes a reference to the pixmap, so we
|
||||
drop ours. */
|
||||
(pScreen->DestroyPixmap) (pDstPix);
|
||||
dixDestroyPixmap(pDstPix, 0);
|
||||
pDstPix = NULL;
|
||||
|
||||
if (!pDst) {
|
||||
@@ -1542,7 +1542,7 @@ ProcRenderCreateCursor(ClientPtr client)
|
||||
free(mskbits);
|
||||
return error;
|
||||
}
|
||||
(*pScreen->DestroyPixmap) (pPixmap);
|
||||
dixDestroyPixmap(pPixmap, 0);
|
||||
CompositePicture(PictOpSrc,
|
||||
pSrc, 0, pPicture, 0, 0, 0, 0, 0, 0, width, height);
|
||||
(*pScreen->GetImage) (pPicture->pDrawable,
|
||||
|
||||
Reference in New Issue
Block a user