aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-10-24 21:44:30 +0200
committerTony Crisci <tony@dubstepdish.com>2017-10-24 19:11:57 -0400
commit87b5b268d1b55644cdcd24e0549776f03423caeb (patch)
tree79c142b9a2de968d57391363b93890db0fdcaa63
parent2ff94d0036833b85f54c8be0ffb98c49be168be2 (diff)
Remove gamma_control->link from list in destroy
-rw-r--r--types/wlr_gamma_control.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_gamma_control.c b/types/wlr_gamma_control.c
index 9d74e749..e765c2a5 100644
--- a/types/wlr_gamma_control.c
+++ b/types/wlr_gamma_control.c
@@ -15,6 +15,7 @@ static void gamma_control_destroy(struct wlr_gamma_control *gamma_control) {
wl_signal_emit(&gamma_control->events.destroy, gamma_control);
wl_list_remove(&gamma_control->output_destroy_listener.link);
wl_resource_set_user_data(gamma_control->resource, NULL);
+ wl_list_remove(&gamma_control->link);
free(gamma_control);
}