From 5c810e2ac233e00f361549bafb9b59e8a9e05eff Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Wed, 30 Mar 2011 15:19:28 +0300 Subject: 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 Reviewed-by: Alan Coopersmith --- src/xcms/LRGB.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3