From a6381e69845f58d2b3282992b1f881015190f1bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 29 Nov 2006 19:25:09 +0100 Subject: [PATCH] xfree86 DDX: Delete DDX screens in ddxGiveUp(). This allows video drivers to clean up in the FreeScreen hook things they set up in the PreInit hook. --- hw/xfree86/common/xf86Init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index ff878d59c..68d69c51c 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -1119,6 +1119,9 @@ ddxGiveUp() DGAShutdown(); #endif + while (xf86NumScreens) + xf86DeleteScreen(xf86NumScreens - 1, 0); + xf86CloseConsole(); xf86CloseLog();