From 64e1ec2b486ef2f3f0fbc45deccbe517faf88c05 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 30 Sep 2024 17:58:18 +0200 Subject: [PATCH] (!1711) vfb: 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 --- hw/vfb/InitOutput.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c index 4ebd8b058..2154bc3c6 100644 --- a/hw/vfb/InitOutput.c +++ b/hw/vfb/InitOutput.c @@ -731,8 +731,7 @@ vfbCloseScreen(ScreenPtr pScreen) /* * fb overwrites miCloseScreen, so do this here */ - if (pScreen->devPrivate) - (*pScreen->DestroyPixmap) (pScreen->devPrivate); + dixDestroyPixmap(pScreen->devPrivate, 0); pScreen->devPrivate = NULL; return pScreen->CloseScreen(pScreen);