diff options
author | Julien Cristau <jcristau@debian.org> | 2012-05-11 21:31:50 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-05-24 14:57:21 +1000 |
commit | d348ab06aae21c153ecbc3511aeafc8ab66d8303 (patch) | |
tree | 27912eb027426511511e8828d145e704cee38f79 | |
parent | e4153c1d9138ed40de1c615525066a0f5bb599dc (diff) |
Xvfb: destroy the screen pixmap in CloseScreen
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | hw/vfb/InitOutput.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/vfb/InitOutput.c b/hw/vfb/InitOutput.c index e2cd96cdc..16edf4307 100644 --- a/hw/vfb/InitOutput.c +++ b/hw/vfb/InitOutput.c @@ -774,6 +774,13 @@ vfbCloseScreen(int index, ScreenPtr pScreen) for (i = 0; i < screenInfo.numScreens; i++) SetInstalledColormap(screenInfo.screens[i], NULL); + /* + * fb overwrites miCloseScreen, so do this here + */ + if (pScreen->devPrivate) + (*pScreen->DestroyPixmap) (pScreen->devPrivate); + pScreen->devPrivate = NULL; + return pScreen->CloseScreen(index, pScreen); } |