[PATCH 15/16] xcms: Fix error on LINEAR_RGB_InitSCCData error path.
Ander Conselvan de Oliveira
ander.conselvan-de-oliveira at nokia.com
Wed Mar 30 06:12:08 PDT 2011
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 at nokia.com>
---
src/xcms/LRGB.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/xcms/LRGB.c b/src/xcms/LRGB.c
index 2dca82e..9b394fe 100644
--- a/src/xcms/LRGB.c
+++ b/src/xcms/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);
--
1.7.0.4
More information about the xorg-devel
mailing list