aboutsummaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2021-07-12 17:26:54 +0200
committerPierre Ossman <ossman@cendio.se>2021-07-13 14:26:04 +0200
commita52d8757df646918d303e2bcee1ea128dde4cdad (patch)
tree408a03bcb5c302390133e14a023b766f170a38d6 /unix
parentc11f8f9930a9ec0fc4a9f3ff7748eef4414591db (diff)
downloadtigervnc-a52d8757df646918d303e2bcee1ea128dde4cdad.tar.gz
tigervnc-a52d8757df646918d303e2bcee1ea128dde4cdad.zip
Remove CloseScreen() wrapper
The memory leak this worked around was fixed in X.org 1.16.
Diffstat (limited to 'unix')
-rw-r--r--unix/xserver/hw/vnc/xvnc.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/unix/xserver/hw/vnc/xvnc.c b/unix/xserver/hw/vnc/xvnc.c
index 1f95207d..6bae8e3b 100644
--- a/unix/xserver/hw/vnc/xvnc.c
+++ b/unix/xserver/hw/vnc/xvnc.c
@@ -113,8 +113,6 @@ typedef struct {
unsigned int lineBias;
- CloseScreenProcPtr closeScreen;
-
vfbFramebufferInfo fb;
Bool pixelFormatDefined;
@@ -1109,23 +1107,6 @@ vncRandRInit(ScreenPtr pScreen)
}
static Bool
-vfbCloseScreen(ScreenPtr pScreen)
-{
- vfbScreenInfoPtr pvfb = &vfbScreens[pScreen->myNum];
-
- pScreen->CloseScreen = pvfb->closeScreen;
-
- /*
- * fb overwrites miCloseScreen, so do this here
- */
- if (pScreen->devPrivate)
- (*pScreen->DestroyPixmap) ((PixmapPtr) pScreen->devPrivate);
- pScreen->devPrivate = NULL;
-
- return pScreen->CloseScreen(pScreen);
-}
-
-static Bool
vfbScreenInit(ScreenPtr pScreen, int argc, char **argv)
{
int index = pScreen->myNum;
@@ -1250,9 +1231,6 @@ vfbScreenInit(ScreenPtr pScreen, int argc, char **argv)
miSetZeroLineBias(pScreen, pvfb->lineBias);
- pvfb->closeScreen = pScreen->CloseScreen;
- pScreen->CloseScreen = vfbCloseScreen;
-
return TRUE;
} /* end vfbScreenInit */