aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/src/xcms
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-10-23 12:14:51 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-10-23 12:14:51 +0200
commit2eb4a65ebd9aa04bd663fb9a7f0680fd2c56e990 (patch)
treeeb5f9616387784ec1a5914395a9e3355baca2ce4 /nx-X11/lib/src/xcms
parent3dc4595560b34242fe4705af8c93d0024eeb2c56 (diff)
parent701e702a121029098a6123bee9e43a9b81f4b3d9 (diff)
downloadnx-libs-2eb4a65ebd9aa04bd663fb9a7f0680fd2c56e990.tar.gz
nx-libs-2eb4a65ebd9aa04bd663fb9a7f0680fd2c56e990.tar.bz2
nx-libs-2eb4a65ebd9aa04bd663fb9a7f0680fd2c56e990.zip
Merge branch 'uli42-pr/libX11_1.6.6' into 3.6.x
Attributes GH PR #722: https://github.com/ArcticaProject/nx-libs/pull/722
Diffstat (limited to 'nx-X11/lib/src/xcms')
-rw-r--r--nx-X11/lib/src/xcms/LRGB.c3
-rw-r--r--nx-X11/lib/src/xcms/cmsColNm.c2
-rw-r--r--nx-X11/lib/src/xcms/cmsLkCol.c3
-rw-r--r--nx-X11/lib/src/xcms/cmsProp.c1
4 files changed, 7 insertions, 2 deletions
diff --git a/nx-X11/lib/src/xcms/LRGB.c b/nx-X11/lib/src/xcms/LRGB.c
index 38cc6cfb4..4bfa3cfb1 100644
--- a/nx-X11/lib/src/xcms/LRGB.c
+++ b/nx-X11/lib/src/xcms/LRGB.c
@@ -795,6 +795,9 @@ LINEAR_RGB_InitSCCData(
return(XcmsSuccess);
+FreeBlueTblElements:
+ Xfree(pScreenData->pBlueTbl->pBase);
+
FreeBlueTbl:
Xfree(pScreenData->pBlueTbl);
diff --git a/nx-X11/lib/src/xcms/cmsColNm.c b/nx-X11/lib/src/xcms/cmsColNm.c
index c6f1e0f31..829749112 100644
--- a/nx-X11/lib/src/xcms/cmsColNm.c
+++ b/nx-X11/lib/src/xcms/cmsColNm.c
@@ -314,7 +314,7 @@ field2(
/* Find Field 1 */
while (!isgraph(*pBuf)) {
- if ((*pBuf != '\n') || (*pBuf != '\0')) {
+ if ((*pBuf == '\n') || (*pBuf == '\0')) {
return(XcmsFailure);
}
if (isspace(*pBuf) || (*pBuf == delim)) {
diff --git a/nx-X11/lib/src/xcms/cmsLkCol.c b/nx-X11/lib/src/xcms/cmsLkCol.c
index 15e987424..a81c4cbf0 100644
--- a/nx-X11/lib/src/xcms/cmsLkCol.c
+++ b/nx-X11/lib/src/xcms/cmsLkCol.c
@@ -76,7 +76,8 @@ XcmsLookupColor (
register int n;
xLookupColorReply reply;
register xLookupColorReq *req;
- XColor def, scr;
+ XColor def = {0,};
+ XColor scr = {0,};
/*
* 0. Check for invalid arguments.
diff --git a/nx-X11/lib/src/xcms/cmsProp.c b/nx-X11/lib/src/xcms/cmsProp.c
index a7aa5b5c5..cb7bd10c6 100644
--- a/nx-X11/lib/src/xcms/cmsProp.c
+++ b/nx-X11/lib/src/xcms/cmsProp.c
@@ -142,6 +142,7 @@ _XcmsGetProperty(
if (xgwp_ret != Success || format_ret == 0 || nitems_ret == 0) {
/* the property does not exist or is of an unexpected type or
getting window property failed */
+ XFree (prop_ret);
return(XcmsFailure);
}