aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-24 15:48:19 -0400
committerGitHub <noreply@github.com>2017-10-24 15:48:19 -0400
commit71ee40e8f105395cc8eccb8cadf5c72323311bc0 (patch)
treef1aad7957625d3434c846c7fc4411d880c91fc61
parentbbf08f3ef9cf831c6af49060871995eaa0963bca (diff)
parent9ccf66f53d5bf7aba6e2ede28f3bd1964a567ae0 (diff)
Merge pull request #332 from emersion/gamma-control-fix-destroy
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);
}