Commit 2aeb7671 authored by Keith Packard's avatar Keith Packard Committed by Ulrich Sibiller

Backport: 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: 's avatarKeith Packard <keithp@keithp.com> Signed-off-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent f4547610
......@@ -125,6 +125,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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment