sct

set color temperature
git clone anongit@rnpnr.xyz:sct.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 289bfab6d2ea5f1c6733a4c65b112aafcb39f91f
Parent: 0de52379321c80e58a2fe082d84c77fbd8a3d744
Author: zvezdochiot
Date:   Fri,  9 Aug 2019 10:45:16 +0300

1.5: splint: fix Warning (Finished checking --- 11 code warnings)

Diffstat:
Msct.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sct.c b/sct.c @@ -92,7 +92,7 @@ static int get_sct_for_screen(Display *dpy, int screen, int fdebug) gammag += (crtc_gamma->green[size - 1]); gammab += (crtc_gamma->blue[size - 1]); - XFree(crtc_gamma); + XRRFreeGamma(crtc_gamma); } XFree(res); gammam = (gammar > gammag) ? gammar : gammag; @@ -187,7 +187,7 @@ static void sct_for_screen(Display *dpy, int screen, int temp, int fdebug) } XRRSetCrtcGamma(dpy, crtcxid, crtc_gamma); - XFree(crtc_gamma); + XRRFreeGamma(crtc_gamma); } XFree(res);