aboutsummaryrefslogtreecommitdiffstats
path: root/src/state.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-18 14:34:56 +0200
committerMattias Andrée <maandree@kth.se>2016-07-18 14:35:16 +0200
commit48f4715d1cfe3c1dc39533ff5d2441399b769ae9 (patch)
tree310505010a9548091554ea64a59c52ebdf731577 /src/state.c
parentMove disconnect and reconnect to servers/crtc.c, but keep gamma reapplication in servers/gamma.c (diff)
downloadcoopgammad-48f4715d1cfe3c1dc39533ff5d2441399b769ae9.tar.gz
coopgammad-48f4715d1cfe3c1dc39533ff5d2441399b769ae9.tar.bz2
coopgammad-48f4715d1cfe3c1dc39533ff5d2441399b769ae9.tar.xz
bug fix
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/state.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/state.c b/src/state.c
index a7fd57f..0a0a369 100644
--- a/src/state.c
+++ b/src/state.c
@@ -155,11 +155,7 @@ void state_destroy(void)
if (outputs != NULL)
for (i = 0; i < outputs_n; i++)
- {
- if (crtcs == NULL)
- libgamma_crtc_destroy(outputs[i].crtc + i);
- output_destroy(outputs + i);
- }
+ output_destroy(outputs + i);
free(outputs);
if (crtcs != NULL)
for (i = 0; i < outputs_n; i++)