[X2Go-Commits] [nx-libs] 03/11: nx-X11: Backport: Free randr crtc and output pointer arrays

git-admin at x2go.org git-admin at x2go.org
Sat Jul 4 02:23:32 CEST 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.5.0.x
in repository nx-libs.

commit 9b26cc1636da2039837be7b40b26715442554c94
Author: Keith Packard <keithp at keithp.com>
Date:   Fri Jul 3 23:02:14 2015 +0200

    nx-X11: 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 at keithp.com>
    Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
    
    Backported from Arctica GH 3.6.x branch.
    
    v2: backport to nx-libs 3.6.x (Ulrich Sibiller)
    v3: backport to nx-libs 3.5.0.x (Mihai Moldovan)
---
 debian/changelog                                   |    6 ++++
 ...-randr-crtc-and-output-pointer-array.full.patch |   30 ++++++++++++++++++++
 debian/patches/series                              |    1 +
 3 files changed, 37 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index bae4715..e410722 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -275,6 +275,12 @@ nx-libs (2:3.5.0.32-0x2go1) UNRELEASED; urgency=low
     v3: backport to nx-libs 3.5.0.x (Mihai Moldovan)
     Adds:
     - 1251_nx-X11_Drop-a-reference-to-user-mode-after-crea.full.patch
+  * nx-X11: Free randr crtc and output pointer arrays
+    Backported from Arctica GH 3.6.x branch.
+    v2: backport to nx-libs 3.6.x (Ulrich Sibiller)
+    v3: backport to nx-libs 3.5.0.x (Mihai Moldovan)
+    Adds:
+    - 1252_nx-X11_Free-randr-crtc-and-output-pointer-array.full.patch
 
  -- X2Go Release Manager <git-admin at x2go.org>  Tue, 17 Mar 2015 19:19:32 +0100
 
diff --git a/debian/patches/1252_nx-X11_Free-randr-crtc-and-output-pointer-array.full.patch b/debian/patches/1252_nx-X11_Free-randr-crtc-and-output-pointer-array.full.patch
new file mode 100644
index 0000000..6c6b1d0
--- /dev/null
+++ b/debian/patches/1252_nx-X11_Free-randr-crtc-and-output-pointer-array.full.patch
@@ -0,0 +1,30 @@
+commit 2aeb7671963932d5ddb771ad641969e20bb9aa25
+Author: Keith Packard <keithp at keithp.com>
+Date:   Thu Sep 17 18:14:37 2009 -0700
+
+    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 at keithp.com>
+    Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
+
+    Backported from Arctica GH 3.6.x branch.
+
+    v2: backport to nx-libs 3.6.x (Ulrich Sibiller)
+    v3: backport to nx-libs 3.5.0.x (Mihai Moldovan)
+
+diff --git a/nx-X11/programs/Xserver/randr/randr.c b/nx-X11/programs/Xserver/randr/randr.c
+index 81df406..f565617 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);    
diff --git a/debian/patches/series b/debian/patches/series
index c91269b..d24ed1f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -138,6 +138,7 @@
 1210-CVE-2015-3418-dix-Allow-zero-height-PutImage-re.full.patch
 1250_nx-X11_Bug-51375-Xorg-doesn_t-set-status-for-RR.full.patch
 1251_nx-X11_Drop-a-reference-to-user-mode-after-crea.full.patch
+1252_nx-X11_Free-randr-crtc-and-output-pointer-array.full.patch
 9900-dxpc-license-history.full+lite.patch
 0016_nx-X11_install-location.debian.patch
 0102_xserver-xext_set-securitypolicy-path.debian.patch

--
Alioth's /srv/git/code.x2go.org/nx-libs.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list