mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-27 03:45:34 +00:00
(!1711) fb: 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>
This commit is contained in:
@@ -81,7 +81,7 @@ fbOverlayCloseScreen(ScreenPtr pScreen)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < pScrPriv->nlayers; i++) {
|
||||
(*pScreen->DestroyPixmap) (pScrPriv->layer[i].u.run.pixmap);
|
||||
dixDestroyPixmap(pScrPriv->layer[i].u.run.pixmap, 0);
|
||||
RegionUninit(&pScrPriv->layer[i].u.run.region);
|
||||
}
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user