From 8d3369d70ff812a302d7e2be62445727a32e204c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 25 Apr 2019 10:01:43 +0300 Subject: [PATCH] output-damage: fix segfault after destroy Fixes: 5e6766a165bd4bc71f1dc24c4348f7be0f020ddd --- types/wlr_output_damage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/types/wlr_output_damage.c b/types/wlr_output_damage.c index b209d300..a129cec8 100644 --- a/types/wlr_output_damage.c +++ b/types/wlr_output_damage.c @@ -114,6 +114,7 @@ void wlr_output_damage_destroy(struct wlr_output_damage *output_damage) { wl_list_remove(&output_damage->output_scale.link); wl_list_remove(&output_damage->output_needs_frame.link); wl_list_remove(&output_damage->output_frame.link); + wl_list_remove(&output_damage->output_commit.link); pixman_region32_fini(&output_damage->current); for (size_t i = 0; i < WLR_OUTPUT_DAMAGE_PREVIOUS_LEN; ++i) { pixman_region32_fini(&output_damage->previous[i]);