aboutsummaryrefslogtreecommitdiffstats
path: root/src/state.c
diff options
context:
space:
mode:
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++)