File U_bsc1216261-0003-dix-always-initialize-pScreen-CloseScreen.patch of Package xorg-x11-server.32145

@@ -, +, @@ 
   pScreen->CloseScreen = priv->CloseScreen;
   free(priv);
   return (*pScreen->CloseScreen)(pScreen);
---
 dix/dispatch.c | 9 +++++++++
 1 file changed, 9 insertions(+)
Index: xorg-server-21.1.4/dix/dispatch.c
===================================================================
--- xorg-server-21.1.4.orig/dix/dispatch.c
+++ xorg-server-21.1.4/dix/dispatch.c
@@ -3893,6 +3893,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
@@ -3952,6 +3958,9 @@ static int init_screen(ScreenPtr pScreen
             PixmapWidthPaddingInfo[depth].notPower2 = 0;
         }
     }
+
+    pScreen->CloseScreen = DefaultCloseScreen;
+
     return 0;
 }
 
openSUSE Build Service is sponsored by