aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com>2011-03-30 15:19:28 +0300
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:25 +0200
commitfefb909a07d633986e9850dbe3baa91cd1531920 (patch)
treed9c24441aa0cf53cadd86d264c27d29b3c9950f1 /nx-X11/lib/X11
parentdce81504f91a0db92e0a3cdaa173a5e64cd2c213 (diff)
downloadnx-libs-fefb909a07d633986e9850dbe3baa91cd1531920.tar.gz
nx-libs-fefb909a07d633986e9850dbe3baa91cd1531920.tar.bz2
nx-libs-fefb909a07d633986e9850dbe3baa91cd1531920.zip
xcms: Fix error on LINEAR_RGB_InitSCCData error path.
Due to what looks like a copy & paste error, pScreenData->pBlueTbl would be accessed after being free'd. Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11')
-rw-r--r--nx-X11/lib/X11/LRGB.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/LRGB.c b/nx-X11/lib/X11/LRGB.c
index 08c7105ab..82f5de757 100644
--- a/nx-X11/lib/X11/LRGB.c
+++ b/nx-X11/lib/X11/LRGB.c
@@ -802,7 +802,7 @@ FreeBlueTbl:
Xfree((char *)pScreenData->pBlueTbl);
FreeGreenTblElements:
- Xfree((char *)pScreenData->pBlueTbl->pBase);
+ Xfree((char *)pScreenData->pGreenTbl->pBase);
FreeGreenTbl:
Xfree((char *)pScreenData->pGreenTbl);