diff options
author | Keith Packard <keithp@keithp.com> | 2015-07-03 22:46:27 +0200 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2015-07-04 01:26:48 +0200 |
commit | 389e410283419c1dd63cfe390601118491ccd0ba (patch) | |
tree | 3e94fa14d4e61e200d6caa257802d93b248d2b72 /debian/patches/1251_nx-X11_Drop-a-reference-to-user-mode-after-crea.full.patch | |
parent | 257825c88dd670eec2772109a0f48c78f4b5b190 (diff) | |
download | nx-libs-389e410283419c1dd63cfe390601118491ccd0ba.tar.gz nx-libs-389e410283419c1dd63cfe390601118491ccd0ba.tar.bz2 nx-libs-389e410283419c1dd63cfe390601118491ccd0ba.zip |
nx-X11: Backport: Drop a reference to user mode after create
User mode has no customer when create until assigned
to some output.
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)
Diffstat (limited to 'debian/patches/1251_nx-X11_Drop-a-reference-to-user-mode-after-crea.full.patch')
-rw-r--r-- | debian/patches/1251_nx-X11_Drop-a-reference-to-user-mode-after-crea.full.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/1251_nx-X11_Drop-a-reference-to-user-mode-after-crea.full.patch b/debian/patches/1251_nx-X11_Drop-a-reference-to-user-mode-after-crea.full.patch new file mode 100644 index 000000000..a73a1c7fe --- /dev/null +++ b/debian/patches/1251_nx-X11_Drop-a-reference-to-user-mode-after-crea.full.patch @@ -0,0 +1,28 @@ +commit f45476100e7d70a51a1513f4d7737addca737bd6 +Author: Keith Packard <keithp@keithp.com> +Date: Wed Sep 10 13:11:09 2008 +0800 + + Backport: Drop a reference to user mode after create + + User mode has no customer when create until assigned + to some output. + + 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/rrmode.c b/nx-X11/programs/Xserver/randr/rrmode.c +index 62c0148..09c0113 100644 +--- a/nx-X11/programs/Xserver/randr/rrmode.c ++++ b/nx-X11/programs/Xserver/randr/rrmode.c +@@ -342,7 +342,8 @@ ProcRRCreateMode (ClientPtr client) + swapl(&rep.mode, n); + } + WriteToClient(client, sizeof(xRRCreateModeReply), (char *)&rep); +- ++ /* Drop out reference to this mode */ ++ RRModeDestroy (mode); + return client->noClientException; + } + |