Stefan Dirsch
678de8e366
* miCloseScreen check for null pScreen dev private (bsc#1218176); another regression introduced by U_bsc1216261-0002-fb-properly-wrap-unwrap-CloseScreen.patch OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xorg-x11-server?expand=0&rev=866
18 lines
596 B
Diff
18 lines
596 B
Diff
mi/miscrinit.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
Index: xorg-server-21.1.4/mi/miscrinit.c
|
|
===================================================================
|
|
--- xorg-server-21.1.4.orig/mi/miscrinit.c
|
|
+++ xorg-server-21.1.4/mi/miscrinit.c
|
|
@@ -121,7 +121,9 @@ miModifyPixmapHeader(PixmapPtr pPixmap,
|
|
static Bool
|
|
miCloseScreen(ScreenPtr pScreen)
|
|
{
|
|
- return ((*pScreen->DestroyPixmap) ((PixmapPtr) pScreen->devPrivate));
|
|
+ if (pScreen->devPrivate)
|
|
+ return ((*pScreen->DestroyPixmap) ((PixmapPtr) pScreen->devPrivate));
|
|
+ return TRUE;
|
|
}
|
|
|
|
static Bool
|