diff options
-rw-r--r-- | types/wlr_gamma_control_v1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/types/wlr_gamma_control_v1.c b/types/wlr_gamma_control_v1.c index 009a42a5..4c1e1f1e 100644 --- a/types/wlr_gamma_control_v1.c +++ b/types/wlr_gamma_control_v1.c @@ -219,8 +219,8 @@ static void gamma_control_manager_get_gamma_control(struct wl_client *client, struct wlr_gamma_control_v1 *gc; wl_list_for_each(gc, &manager->controls, link) { if (gc->output == output) { - zwlr_gamma_control_v1_send_failed(gc->resource); - gamma_control_destroy(gc); + zwlr_gamma_control_v1_send_failed(gamma_control->resource); + gamma_control_destroy(gamma_control); return; } } |