aboutsummaryrefslogtreecommitdiffstats
path: root/src/gammad.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-10 21:57:04 +0200
committerMattias Andrée <maandree@kth.se>2016-07-10 21:57:04 +0200
commit96399ca27c075339791a088feb80e03f9f3587d1 (patch)
treeffad2ffb2b2ac2228b0a8b805192bcbc4457e3c0 /src/gammad.c
parentm (diff)
downloadcoopgammad-96399ca27c075339791a088feb80e03f9f3587d1.tar.gz
coopgammad-96399ca27c075339791a088feb80e03f9f3587d1.tar.bz2
coopgammad-96399ca27c075339791a088feb80e03f9f3587d1.tar.xz
Work on marshalling
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/gammad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gammad.c b/src/gammad.c
index c04ba5d..fca9079 100644
--- a/src/gammad.c
+++ b/src/gammad.c
@@ -194,7 +194,6 @@ int main(int argc, char** argv)
gerror = libgamma_crtc_set_gamma_ramps##SUFFIX(outputs[i].crtc, outputs[i].saved_ramps.MEMBER); \
if (gerror) \
libgamma_perror(argv0, gerror); \
- libgamma_gamma_ramps##SUFFIX##_destroy(&(outputs[i].saved_ramps.MEMBER)); \
} \
while (0)
if (crtcs != NULL)
@@ -224,6 +223,7 @@ int main(int argc, char** argv)
default:
break; /* impossible */
}
+ output_destroy(outputs + i);
libgamma_crtc_destroy(crtcs + i);
}
free(crtcs);