From 868e303630d8b84070c2f1fd8d6da2cef045b029 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Tue, 6 Nov 2007 16:24:46 +0100 Subject: [PATCH] Xephyr: fix a crash when using xrandr twice * hw/kdrive/ephyr/ephyr.c: (ephyrScreenFini): don't forget to free shadowfb data (if necessary) upon server is reset. --- hw/kdrive/ephyr/ephyr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/kdrive/ephyr/ephyr.c b/hw/kdrive/ephyr/ephyr.c index f46a89d55..52f5dcf60 100644 --- a/hw/kdrive/ephyr/ephyr.c +++ b/hw/kdrive/ephyr/ephyr.c @@ -719,6 +719,10 @@ ephyrRestore (KdCardInfo *card) void ephyrScreenFini (KdScreenInfo *screen) { + EphyrScrPriv *scrpriv = screen->driver; + if (scrpriv->shadow) { + KdShadowFbFree (screen, 0); + } xfree(screen->driver); screen->driver = NULL; }