summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-09-17 18:14:37 -0700
committerPeter Hutterer <peter.hutterer@who-t.net>2009-09-20 20:45:25 +1000
commitd3a84906c00b8fe4a4e33fa89bff3ed66ceafdec (patch)
tree66eb11a606ff7b51ef9dc279305055d63ea320ba /randr
parent6086a6065666fb9ded5d99919ddfa51c66b76246 (diff)
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 <keithp@keithp.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'randr')
-rw-r--r--randr/randr.c2
1 files changed, 2 insertions, 0 deletions
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);