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>
This commit is contained in:
parent
6086a60656
commit
d3a84906c0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user