From d3a84906c00b8fe4a4e33fa89bff3ed66ceafdec Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 17 Sep 2009 18:14:37 -0700 Subject: [PATCH] Free randr crtc and output pointer arrays All of the crts and outputs were freed, but not the arrays full of pointers to them. Signed-off-by: Keith Packard Signed-off-by: Peter Hutterer --- randr/randr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/randr/randr.c b/randr/randr.c index 1c1d0c4f2..594456485 100644 --- a/randr/randr.c +++ b/randr/randr.c @@ -98,6 +98,8 @@ RRCloseScreen (int i, ScreenPtr pScreen) for (j = pScrPriv->numOutputs - 1; j >= 0; j--) RROutputDestroy (pScrPriv->outputs[j]); + xfree (pScrPriv->crtcs); + xfree (pScrPriv->outputs); xfree (pScrPriv); RRNScreens -= 1; /* ok, one fewer screen with RandR running */ return (*pScreen->CloseScreen) (i, pScreen);