File U_bsc1216261-0003-dix-always-initialize-pScreen-CloseScreen.patch of Package xwayland.31717
@@ -, +, @@
pScreen->CloseScreen = priv->CloseScreen;
free(priv);
return (*pScreen->CloseScreen)(pScreen);
---
dix/dispatch.c | 9 +++++++++
1 file changed, 9 insertions(+)
Index: xwayland-21.1.4/dix/dispatch.c
===================================================================
--- xwayland-21.1.4.orig/dix/dispatch.c
+++ xwayland-21.1.4/dix/dispatch.c
@@ -3833,6 +3833,12 @@ static int indexForScanlinePad[65] = {
3 /* 64 bits per scanline pad unit */
};
+static Bool
+DefaultCloseScreen(ScreenPtr screen)
+{
+ return TRUE;
+}
+
/*
grow the array of screenRecs if necessary.
call the device-supplied initialization procedure
@@ -3892,6 +3898,9 @@ static int init_screen(ScreenPtr pScreen
PixmapWidthPaddingInfo[depth].notPower2 = 0;
}
}
+
+ pScreen->CloseScreen = DefaultCloseScreen;
+
return 0;
}