aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/randr
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-09-17 18:14:37 -0700
committerUlrich Sibiller <uli42@gmx.de>2015-06-07 00:08:42 +0200
commit2aeb7671963932d5ddb771ad641969e20bb9aa25 (patch)
treec748ea80d3833d20d5ad68bf7fb7d5c9e308d16f /nx-X11/programs/Xserver/randr
parentf45476100e7d70a51a1513f4d7737addca737bd6 (diff)
downloadnx-libs-2aeb7671963932d5ddb771ad641969e20bb9aa25.tar.gz
nx-libs-2aeb7671963932d5ddb771ad641969e20bb9aa25.tar.bz2
nx-libs-2aeb7671963932d5ddb771ad641969e20bb9aa25.zip
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: Keith Packard <keithp@keithp.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'nx-X11/programs/Xserver/randr')
-rw-r--r--nx-X11/programs/Xserver/randr/randr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/randr/randr.c b/nx-X11/programs/Xserver/randr/randr.c
index 81df406a6..f565617e6 100644
--- a/nx-X11/programs/Xserver/randr/randr.c
+++ b/nx-X11/programs/Xserver/randr/randr.c
@@ -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);