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.
This commit is contained in:
Dodji Seketeli 2007-11-06 16:24:46 +01:00
parent 58332894c0
commit 868e303630

View File

@ -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;
}