sct

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

Commit: b3112aa30d17b8993d4b19b0417e458e471e96b2
Parent: f701ef9d99c98170b20b5fd2d3a5b815141a9e83
Author: Fabian Foerg
Date:   Sat, 21 Nov 2015 12:50:11 -0500

Fix memleak

Diffstat:
MREADME.md | 4+++-
Msct.c | 7+++++--
2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -11,7 +11,9 @@ Minor modifications were made in order to get sct to: - iterate over all screens of the default display and change the color temperature - free the Display structure -- return 0 +- fix memleaks +- clean up code +- return EXIT_SUCCESS # Installation diff --git a/sct.c b/sct.c @@ -11,8 +11,9 @@ * - compile on Ubuntu 14.04 * - iterate over all screens of the default display and change the color * temperature - * - free the Display structure - * - return 0 + * - fix memleaks + * - clean up code + * - return EXIT_SUCCESS */ #include <math.h> @@ -76,6 +77,8 @@ sct_for_screen(Display *dpy, int screen, int temp) XRRSetCrtcGamma(dpy, crtcxid, crtc_gamma); XFree(crtc_gamma); } + + XFree(res); } int