summaryrefslogtreecommitdiff
path: root/xc
diff options
context:
space:
mode:
authorkem <kem>2002-04-16 21:05:24 +0000
committerkem <kem>2002-04-16 21:05:24 +0000
commit5a3698ac71c3bd6e720103786e06a7b2d7cd89f7 (patch)
treeae6406ffa9f576c1b229d59ccd9be72ef955e7ba /xc
parentf908fa9443e1a002ae677b8634b32898e7a6913a (diff)
Properly close display in CloseScreen -- fixes xtest "Maximum number of
clients reached" crash
Diffstat (limited to 'xc')
-rw-r--r--xc/programs/Xserver/hw/dmx/dmxscrinit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xc/programs/Xserver/hw/dmx/dmxscrinit.c b/xc/programs/Xserver/hw/dmx/dmxscrinit.c
index 9301e8588..d50ca1c4d 100644
--- a/xc/programs/Xserver/hw/dmx/dmxscrinit.c
+++ b/xc/programs/Xserver/hw/dmx/dmxscrinit.c
@@ -381,6 +381,9 @@ Bool dmxCloseScreen(int index, ScreenPtr pScreen)
DMX_UNWRAP(SaveScreen, dmxScreen, pScreen);
+ if (dmxScreen->display) XCloseDisplay(dmxScreen->display);
+ dmxScreen->display = NULL;
+
DMX_UNWRAP(CloseScreen, dmxScreen, pScreen);
return pScreen->CloseScreen(index, pScreen);
}